wood burning stoves 2.0*
The moose likes I/O and Streams and the fly likes problem while reading a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "problem while reading a file" Watch "problem while reading a file" New topic
Author

problem while reading a file

minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
I am using eclipse3.3 . I want to read file from the specified location. I gave full qualified path. It shows FileNotFoundException. But file is present at specified location.


Same method I tried to read image using FileInputString. This code is working.

[ August 04, 2008: Message edited by: minal silimkar ]

Minal Silimkar
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

The only stupid doubt I have , are you sure the "abc.txt" is right there in same folder as you specified and If so , Please make sure the file extension is correct !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
minal silimkar
Ranch Hand

Joined: Nov 25, 2007
Posts: 133
Originally posted by Sagar Rohankar

The only stupid doubt I have , are you sure the "abc.txt" is right there in same folder as you specified and If so , Please make sure the file extension is correct !!

Extensions where hidden. After disabling option the actual file name is "abc.txt.txt". My problem is solved now. Thank you Sagar for your suggestion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem while reading a file