• Post Reply Bookmark Topic Watch Topic
  • New Topic

Network Filename

 
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: 22542
109
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!