Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading one file over network  RSS feed

 
kishukishor patil
Greenhorn
Posts: 23
Firefox Browser Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i do not know how to read one file over the network. Please anyone help how to o this... oe else provide some links...
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Posts: 12141
255
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably the easiest way is to serve it up via a web server. For example, you can see this file (which provides information on a release of slackware) simply because someone put the file in a location served by a web-server (according to the headers, they use the apache web server for the purpose).
 
kishukishor patil
Greenhorn
Posts: 23
Firefox Browser Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Andrew, I have created program using simple file classes. In that i have passed the file name with the network path. The program run properly...


 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!