Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

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: [mg84076] Re: Using ReadList to read a string
  • From: nigol <dario.buttari at gmail.com>
  • Date: Sun, 9 Dec 2007 06:35:42 -0500 (EST)
  • References: <200711301023.FAA06237@smc.vnet.net> <fj36gg$h8d$1@smc.vnet.net>

Don,
here is a way to import that data correctly in one pass with a single
ReadList call:

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

This solution assumes that the EWZ2.TXT file is exactly as stated in
your post (the data is space delimited and not tab delimited).
Please let me know if this solution works on your system.
Thanks,
Dario


  • Prev by Date: MultivariateStatistics Package
  • Next by Date: Re: BarChart[{1, 2}, Frame->True]
  • Previous by thread: Re: Using ReadList to read a string
  • Next by thread: Fitting coupled differential equations to experimental data