Re: Reading in chunks of data
- From: "Arved Sandstrom" <asandstrom@xxxxxxxxxxxxx>
- Date: Thu, 10 Jul 2008 14:23:37 GMT
"Paul.Lee.1971@xxxxxxxxx" <Paul.Lee.1971@xxxxxxxxxxxxxx> wrote in message
news:95d784e4-4f19-4bc4-a0fb-84f218cca39b@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm reading up on the use of the RandomAccessFile (and other file I/O)
classes in Java but I haven't found anything that can help me. Is
there any way to read in data structured in a text file, as follows:
Apr 10
"The Book of the Dead"
£17.95
Apr 13
"Unconvention Highlights"
£4.99
Apr 14
"Miserable Quotients"
£0.02
etc. etc.
So that I can do the following (in pseudo code):
read first three lines: first line assigned to date value, second to
book title, third to cost variable
read next three lines: first line assigned to date value, second to
book title, third to cost variable
etc.
[ SNIP ]
*********************************
Try java.util.Scanner
AHS
.
- References:
- Reading in chunks of data
- From: Paul.Lee.1971@xxxxxxxxx
- Reading in chunks of data
- Prev by Date: Re: Reading in chunks of data
- Next by Date: Re: Downloading multiple MP3 files and executing a iTunes launch
- Previous by thread: Re: Reading in chunks of data
- Next by thread: why openjms uses database configuration
- Index(es):
Relevant Pages
|
Loading