Does anyone know how to check a server for a specific file? For instance, if I had the IP address of a server or computer (example: 18.104.22.168) what is the code to check this computer for a specific file? I badly need to know how to do this!! Any help is appreciated!!
An IP number is not enough - you'll need to know what higher level protocols the server supports (IOW, you need a server process to service your request). FTP, HTTP or similar should do the trick, but you can also write you own socket server.
If the server supports HTTP you can make a simple get request - if it fails, the file most likely didn't exist.