What kind of file is it? Are you reading data from a data file and the Java program can't find the data file? Or is it some class file it can't find? From your description it sounds like the former. I assume this is a run time error rather than a compiler error.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
Its a text file .....although the required text file is right in the same folder where my java program is.....Is it because I put throw IOException...
I don't know. Maybe you should post your Java file and your text file, if they're not too huge. Might make it easier for us to respond that way. I assume you have a "catch" along with your "throw"?
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711