This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Reading from a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Reading from a file" Watch "Reading from a file" New topic

Reading from a file

Audrey Horne

Joined: Mar 14, 2010
Posts: 1
I am having some problems reading from the input file, but not sure why. I have the file saved in the same folder and named the same (InFile)... and ideas?

Ireneusz Kordal
Ranch Hand

Joined: Jun 21, 2008
Posts: 423
It may help if you say us actually what kind of problems do you have: some type of exception was thrown on some line, file contains string "20" but your code reads "50" or something else ?
I agree. Here's the link:
subject: Reading from a file
Similar Threads
Scanner class help
Illegal Start of Expression
Need explanations of inheritance
Counting in Array List/ Standard deviation
Problems reading from a .txt file