This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Network Filename  RSS feed

 
mj deacon
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be a very basic question but I really have been struggling to get this right. I want to address a file over a network connection. For the moment i have given complete access to client and wanting to read a file on the server, but i keep getting fileNotFoundException.

What should the filename look like in Java?
servername\C:\hallo.txt

I've been trying some variations, but I just don't seem to get it right
 
Henry Wong
author
Sheriff
Posts: 22831
119
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This *really* depends on how you have your server configured... but if I have to guess... try...

\\servername\C$\hallo.txt

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!