MathGroup Archive 2003

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

Search the Archive

Re: Unformatted File IO


say your data in tmp.txt, and try

Import["tmp.txt", "Table"]


"Bruce W. Colletti" wrote:
> I have an unformatted text file whose records hold reals and double-quoted
> strings, all delimited by spaces, e.g.,
>     "hello there"  2.7
>     1 2 3 4
>     9    "abc"      "def"
> How can I read the file to produce a list of lists, e.g., {{hello there, 2.7},
> {1,2,3,4}, {9, abc, def}}?
> Thanks.
> Bruce

  • Prev by Date: Re: Trying to use Mathematica as "word processor" for my math homework
  • Next by Date: Re: Derivative of a funtion evaluated at a point in 3D
  • Previous by thread: Re: Unformatted File IO
  • Next by thread: Re: Re: Unformatted File IO