Please tell me how to write a Java program which makes a text file in Windows XP enabled PC and send the file to a Linux enabled PC. Class file will be on windows environment and When running it has to create the text file and transfer the file to Linux enalbed PC through the network...
Doing a straight file transfer should be easy - just create the file and either serialize all it's content and send it (if the file is small) or make a file stream (if the file is large). Since the files are specifically text, you may need to do some post-transfer processing if you're planning on viewing them on platforms they weren't created on - you could use Runtime.exec() to call dos2unix/unix2dos on the file, but since all it's really doing is search/replace on text, you could probably implement your own code to do this.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.