I’m trying to make a program where if it’s installed on another computer, I can access files on that computer. Is this possible using java? and if so could anyone possibly point me in the right direction with what class(es) I will need to use apart from BufferedReader and such?
EDIT: I’ve been told to use the serversocket and socket classes. However, one problem I see is connection. If my computer is the server and I disconnect, how do I make the socket connect with me again without me having control over the socket? Or vice-versa, how can I be assured that I can open the serversocket without control over the other computer?
If you want to send files between Java programs running on separate computers, then use Socket and ServerSocket. The BufferedReader and Writer classes you seem to already know will help you with reading and writing the files. The socket classes will help you transport items.