Android: Filereader Unexpectedly Throwing Filenotfoundexception
So I'm unexpectedly receiving a FileNotFoundException. As you can see, shortly before I call the FileReader, I call FileInputStream which works fine. I've tried putting the FileRea
Solution 1:
openFileInput()
and new FileReader()
do not take the same parameter.
openFileInput("file.txt")
is equivalent to new FileReader(new File(getFilesDir(), "file.txt"))
.
Post a Comment for "Android: Filereader Unexpectedly Throwing Filenotfoundexception"