Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Re: Unformatted File IO

  • To: mathgroup at
  • Subject: [mg44462] Re: Unformatted File IO
  • From: Jens-Peer Kuska <kuska at>
  • Date: Mon, 10 Nov 2003 19:55:47 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <boigr2$ojk$>
  • Reply-to: kuska at
  • Sender: owner-wri-mathgroup at


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