• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing files on a server  RSS feed

 
Ravindra Suroju
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have my code deployed on a websphere server. how can I access a file present on server (C:\abc\def\xyz.txt). I am able to read the path from properties file but getting a file not found exception. wat should be the path in properites file to access the file that is present on harddisk.

Regards,
Ravindra.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A frequent cause of FileNotFoundExceptions are permissions problems - if the account running the server does not have permissions to access any of the directories, or the file itself, that exception will be thrown.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!