aspose file tools
The moose likes I/O and Streams and the fly likes FileNotFoundException with BufferedReader Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply Bookmark "FileNotFoundException with BufferedReader" Watch "FileNotFoundException with BufferedReader" New topic
Author

FileNotFoundException with BufferedReader

Leon Glass
Greenhorn

Joined: Jan 22, 2009
Posts: 5
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.
[Thumb - screenshot.png]
 Filename screenshot.png [Disk] Download
 Description
 Filesize 174 Kbytes
 Downloaded:  6 time(s)



Noli illegitemi carborundum
Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
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 ?
 
 
subject: FileNotFoundException with BufferedReader
 
Threads others viewed
problem executing a unix command in java runtime
Reading a text file
Reading File contents to a String
Not able to write the whole content
Cannot find symbol method close(java.io.BufferedReader)
Two Laptop Bag