This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes reading an integer from a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "reading an integer from a file" Watch "reading an integer from a file" New topic

reading an integer from a file

unyime inok

Joined: Oct 13, 2004
Posts: 29
Why i'm i getting this errors? system cannot find the file specified )
at Method)
at ReadInteger.<init>(
at TestFile.main(

Here's my code:

[ November 02, 2004: Message edited by: Joel McNary ]
Joel McNary

Joined: Aug 20, 2001
Posts: 1824

Where is your File.dat file located? It seems to me that the file is not being found. Try specifying an absolute path name to the file.

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Are you running this within an IDE? If so which?

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
I agree. Here's the link:
subject: reading an integer from a file
jQuery in Action, 3rd edition