OK, well you can give it a shot then and see how it performs. The code is pretty simple; get IP address, open file, read line by line and compare. If not found, append to end of file
I don't have much time to try and write the code myself but look at fopen and fgets
This is a good start...