error on at java.io.FileInputStream.<init>(Unknown Source)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rubyhuang
    New Member
    • Dec 2007
    • 19

    error on at java.io.FileInputStream.<init>(Unknown Source)

    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.
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Originally posted by rubyhuang
    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.
    If you are not sure where to put that .txt file, have a test...

    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

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by rubyhuang
      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.
      Eclipse has nothing to do with it; but *what* does it say when you call a
      FileInputStream constructor?

      kind regards,

      Jos

      Comment

      Working...