Re: Using the fileReader?
As it stands, your code will work if everything is sharing the same directory.
Not sure if it could be a classpath issue, but for now make sure the name of your text file is ppp and not ppp.txt (with .txt extension too, i.e. make sure your file isnt ppp.txt.txt :D)
Just a guess.
Re: Using the fileReader?
omg thank you so much. The issue WAS that it was named "ppp.txt.txt". I wish I would have found this out so long ago.
THANKS AGAIN!!!
Re: Using the fileReader?
you would require to place the text file ppp.txt under the root directory of the project or you need to provide the full path of the text file when you are creating File Object. For example FileReader fr = new FileReader("E:\ \JavaApplication2\ppp.txt"); or File file = new File("E:\ \JavaApplication2\ppp.txt ");
Hope u satisfied with this.
and thanks