Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tansfer file from one pc to another

 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

the problem is like this..

I have to transfer a file(txt file) from one pc to another.Now i want to write only one program suppose on pc A and that program save this file into C drive of pc B.this program connects to pc B and saves it there.

any suggestions how to do it....

waiting....
 
Joe Ess
Bartender
Posts: 9311
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There has to be some process on pc B which is listening for the connection from pc A. You can use FTP, HTTP, map a network drive or write your own custom network protocol but you can't just write a file to pc B.
 
Himanshu Rawat
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
got it dude...well i was just asking there may be another way but its nt soo....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic