User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 427,167 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,043 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

Reading an array from a file

Join Date: Mar 2005
Posts: 13
Reputation: Bud4java is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
Bud4java Bud4java is offline Offline
Newbie Poster

Reading an array from a file

  #1  
May 4th, 2005
How do I initialize an array that has been called from a file? There will be 5 values in the array. So should my file "input.dat" have:
5 (number of values)
4 (value)
6 (value)
7 (value)
2 (value)
7 (value)


Example:
BufferedReader br = new BufferedReader(
new FileReader("input.dat"));


and I'm lost after that.

Thanks,
Bud
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 8:48 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC