| Author |
idea for this pls?!
|
vivek sivakumar
Ranch Hand
Joined: Aug 09, 2001
Posts: 187
|
|
well i have a file say list.ini and following are the contents (contents might grow also..) 10002 10009 30000 40000 500000 600000 so my problem i need to read these values from this file and store it in a vector!!!pls give me an idea on how to do it?
|
SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
Hello, Here's a basic file reader that puts the data into a Vector: You'd probably find lots of useful information if you were to do a search on the I/O and Streams Forum. The search page link is at the top right of this page. Good Luck. [ April 04, 2002: Message edited by: Dirk Schreckmann ]
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
Also... Chapters 21, 22, and 23 of Bradley Kjell's Java Tutorial do a decent job of covering the topics of file input and output. And Chapter 10 of David J. Eck's Java Tutorial covers input and output in Java. Good Luck.
|
 |
Corey McGlone
Ranch Hand
Joined: Dec 20, 2001
Posts: 3271
|
|
This should do the trick... If you have any questions, let me know. Corey Update: I see Dirk is a little faster on the draw than I am. Nice shootin', Tex!  [ April 04, 2002: Message edited by: Corey McGlone ]
|
SCJP Tipline, etc.
|
 |
 |
|
|
subject: idea for this pls?!
|
|
|