Re: Convert 2D list to delimited text?
- To: mathgroup at smc.vnet.net
- Subject: [mg16701] Re: [mg16669] Convert 2D list to delimited text?
- From: BobHanlon at aol.com
- Date: Wed, 24 Mar 1999 02:23:33 -0500
- Sender: owner-wri-mathgroup at wolfram.com
In a message dated 3/19/99 11:52:30 PM, johnson at ae.msstate.edu writes:
>I'm trying to convert a 2D list of lists to delimited text. For example:
>
> {{x1,y1},{x2,y2},...,{xn,yn}}
>
>to
>
> x1,y1
> x2,y2
> ...
> xn,yn
>
>Is there any easy way to do this? Thanks.
>
David,
This may be what you want:
data = {{x1, y1}, {x2, y2}, {x3, y3}};
Print[StringForm["``, ``", #[[1]], #[[2]]]]& /@ data;
Bob Hanlon