Hi guys!
I was wondering if any of you could help me out. I've basically got 3 Java programs. One is called "Copier.java" which lets the user specify the location of a txt file to be copied to a new location on the computer.
The other two are called "FileServer" and "FileClient" and when they are both running, the client program asks for a txt file to fetch and then displays the contents of the txt file in the command prompt (as using j2sdk1.4.2_02 not Jbuilder etc).
With those files I have to create the following:
To produce an application that sends a string to a server specifying a filename, and the server opens that file and reads(displays) it. The file name and it contents are then sent to a client residing somewhere else on the PC. I knoiw this is easy, but i've never used Java before and any pointers will be very helpful.
Aims:
* To design the above (�file transfer� application)
* To implement the above using TCP sockets
Basically, all I have to do is merge the "Copier.java" program to the "FileServer.java" and "FileClient.java" to acehive this, but i'm getting nowhere!
I'll post the codes below:
Thanks!