• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read a file available in a remote machine?

 
Ajay Xavier
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
How to read a File available in a remote machine connected in a network?

Can i use simple file stream to read the contents?
(or)
Can i transmit the same file using sockets?

which method is advantageous?
 
Emili Calonge
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I don't know what do you mean by read a file, but I can tell you that you can create a File object of a file you've got in another pc in a LAN, just give the direction of the file when creating the object and it works perfectly. Hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!