Re: Unformatted File IO
- To: mathgroup at smc.vnet.net
- Subject: [mg44462] Re: Unformatted File IO
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Mon, 10 Nov 2003 19:55:47 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <boigr2$ojk$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
say your data in tmp.txt, and try
Import["tmp.txt", "Table"]
Regards
Jens
"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
- Follow-Ups:
- Re: Re: Unformatted File IO
- From: "Bruce W. Colletti" <bcolletti@compuserve.com>
- Re: Re: Unformatted File IO