Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans Text Input Problem

 
T Conan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all, I am having trouble reading from a simple text file in Netbeans 3.6. I am simply trying to read each line with, a method that I will show you here. This all works perfectly fine in a UNIX environment, but Netbeans refuses to see the file. Here is the code:



I have apparently tried everything in Netbeans...ie The text file "input.txt" is in my project, and in my mounted filesystem where my sources are. Am I missing something here, or could this be some kind of bug. Any help from someone experienced in Netbeans would be greatly appreciated! Thanks.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please post your error message.
 
Fortune Almarinez
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Netbeans is looking in its directory not in your mounted one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic