when using eclipse, if want to read a file(eg. using bufferedReader to read), then where to put the .txt file, no matter what place i put the .txt file to, it always said at java.io.FileInp utStream.<init> (Unknown Source). so can i tell me where to put the .txt file to let in can be read. thank you.
error on at java.io.FileInputStream.<init>(Unknown Source)
Collapse
X
-
If you are not sure where to put that .txt file, have a test...Originally posted by rubyhuangwhen using eclipse, if want to read a file(eg. using bufferedReader to read), then where to put the .txt file, no matter what place i put the .txt file to, it always said at java.io.FileInp utStream.<init> (Unknown Source). so can i tell me where to put the .txt file to let in can be read. thank you.
Create a file with .txt extension ( any content )
eg. rubyhuang.txt
After creating such file, find that file on the project folder...
The location of the created rubyhuang.txt should be the right place to put your .txt file....
Hope this helps,
sukatoa -
Eclipse has nothing to do with it; but *what* does it say when you call aOriginally posted by rubyhuangwhen using eclipse, if want to read a file(eg. using bufferedReader to read), then where to put the .txt file, no matter what place i put the .txt file to, it always said at java.io.FileInp utStream.<init> (Unknown Source). so can i tell me where to put the .txt file to let in can be read. thank you.
FileInputStream constructor?
kind regards,
JosComment
Comment