Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException with BufferedReader  RSS feed

 
Leon Glass
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Firstly I apologise for asking this as I feel I should be able to sort this but I can't seem to figure out what is wrong here. I have this code:
and I am getting the output:I have checked the path and the file is there, I have checked the permissions and changed them so that all users have complete access to this file. I have added a screenshot of the file in its directory. I am using NetBeans on Ubuntu if this makes any difference. Please show me the basic mistake I am making here.

[edit] - It seems the problem is with NetBeans as I have just tried it in Eclipse and it works as expected. Has anyone else ever experienced this.
screenshot.png
[Thumbnail for screenshot.png]
 
Ireneusz Kordal
Ranch Hand
Posts: 423
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you run netbeans (and your program) as lg user, or as someone else ?

Open the console and run this command:

What is the output? Is this file exists ?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!