MathGroup Archive 1997

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

Search the Archive

Re: ReadList and FortranForm data

  • To: mathgroup at
  • Subject: [mg8487] Re: ReadList and FortranForm data
  • From: sergio at (Sergio Rojas)
  • Date: Tue, 2 Sep 1997 16:15:29 -0400
  • Organization: City College Of New York - Science
  • Sender: owner-wri-mathgroup at


	You may try:

    which is the same as:
ReadList["data.dat",{Number, Number, Number, Number}]

 	For more details, though not too clear ones, see Pg 156 of 
        Mathematica book, edition of 1988. 

E-mail: sergio at

Sean Ross (seanross at wrote:
: I have never been able to figure out how to read in data from a text
: file that is separated by spaces with return characters at the end of
: each line.  ie

: 1 2 3 4
: 5 6 7 8
: etc.

: The big problem is that Mma interprets the spaces as multiplication
: operators.  I have tried specifying spaces as WordSeparators,
: RecordSeparators, but have not been successful.  My work-around is to
: read the whole thing in as a String using the Word option, then manually
: put commas in where the spaces were and use ToExpression to convert to
: numbers again.  Unfortunately, this method fails with Fortran-like data
: since the e-01 are interpreted as exponentials.  Can someone give me the
: syntax to read in space separated data please.

  • Prev by Date: REQ:Algorythm for combinations
  • Next by Date: Limit bug in Calculus\Limit ???
  • Previous by thread: Re: ReadList and FortranForm data
  • Next by thread: Re: Re: Mathlink-Excel97