MathGroup Archive 2007

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

Search the Archive

Re: Using ReadList to read a string

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83835] Re: Using ReadList to read a string
  • From: "Rolf.Mertig at gmail.com" <Rolf.Mertig at gmail.com>
  • Date: Sun, 2 Dec 2007 04:04:48 -0500 (EST)
  • References: <fioqg6$blb$1@smc.vnet.net>

Hello,

Supposing your file is tab-delimited,the following kind of works:

ReadList["EWZ2.TXT",
      {Number, Word, Word, Number, Number, Number, Number,
        Number}, WordSeparators -> "\t"]

Unfortunately the keyword "Word" means that you might have
to apply ToExpression to the second and third column, in case
you want to have "EWZ" and not EWZ, etc.

I thought that maybe "Expression" would do the trick, but it does not.
Maybe it is time that the good WRI-programmers improve the very
important
function ReadList.
Import is not good (fast) enough.

Rolf

--
Rolf Mertig
GluonVision GmbH, Berlin , Germany
http://www.gluonvision.com


  • Prev by Date: RE: Using ReadList to read a string
  • Next by Date: The integrand has evaluated to non-numerical values for all
  • Previous by thread: RE: Using ReadList to read a string
  • Next by thread: Re: Using ReadList to read a string