MathGroup Archive 1997

[Date Index] [Thread Index] [Author Index]

Search the Archive

how to read file line by line?

Assuming input file like that:
	10 15 30.0
	10 30 6.0
	5  30 4.0

how can I read it, line by line, and discard lines with '15'  as a
second word?
I know that I can read the whole file into a big list and then create a
list of records using Select, but this does not help on large files.

The required approach is to read in only lines satisfying certain
criteria. -- 
charles loboz
to reply: remove from the address

  • Prev by Date: Not so Useful Dumb User Questions
  • Next by Date: Re: Can I read in Mathematica3 (Windows) HDF files
  • Previous by thread: RE: Q: residual standard deviation
  • Next by thread: Re: how to read file line by line?