input stream from input stream?
From: Albert Reiner (albert_at_chello.at)
Date: 01/31/04
- Previous message: Brian Mastenbrook: "Re: swing performance (was Re: Cello Rising ...)"
- Next in thread: Barry Margolin: "Re: input stream from input stream?"
- Reply: Barry Margolin: "Re: input stream from input stream?"
- Reply: Duane Rettig: "Re: input stream from input stream?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 31 Jan 2004 14:10:57 GMT
Hi,
I am in the first stages of getting to know CL, and I want to read large data
files (so large that I cannot read all of it at once into memory without
swapping) that look something like
...
Xasdflksdfasdlfjasdflasdfj
Xoiwerlxciwladlfjasdfklsdk
...
Where the data I am interested in would be
...asdflksdfasdlfjasdflasdfjoiwerlxciwladlfjasdfklsdk...
So it seems most natural to me to open the file as an input stream, and make a
new input stream from that by taking care of discarding X at the beginning of
the lines and concatenating the data. (Analogously for output to a stream.)
I have been reading a bit on streams in the HyperSpec and CLtL2 but do not
seem to find a way of constructing one stream from another one with additional
processing. Is this not a sensible way of doing things, or where should I
look?
Thanks for any pointers,
Albert.
PS: I know about the RtL, and I have no idea about sports.
- Previous message: Brian Mastenbrook: "Re: swing performance (was Re: Cello Rising ...)"
- Next in thread: Barry Margolin: "Re: input stream from input stream?"
- Reply: Barry Margolin: "Re: input stream from input stream?"
- Reply: Duane Rettig: "Re: input stream from input stream?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|