Re: Write: space between numbers in a line
- To: mathgroup at smc.vnet.net
 - Subject: [mg16773] Re: [mg16724] Write: space between numbers in a line
 - From: "Nik Semchenok" <nms at pobox.spbu.ru>
 - Date: Wed, 24 Mar 1999 02:24:10 -0500
 - Sender: owner-wri-mathgroup at wolfram.com
 
>I will appreciate if somebody can tell me how to write two columns
>separated by some space using the Write function:
>
>AA=OpenWrite[A,FormatType->FortranForm];
>Write[AA,10,BLANK ,20]
Let we have the table, of data L.
L:=Table[{i,  i^2},{i,1,5}]
The following commands do that that you wanted. 
It is difficultly, therefore there should be other way, but it works.
Do[WriteString["c:\user\data.dat", ToString[L[[i]][[1]]]<>" "<>ToString[L[[i]][[2]]]<>"\n"],{i,1,5}]
Close["c:\user\data.dat"]
We have received the file c:\user\data.dat
1 1
2 4
3 9
4 16
5 25
Best regards, Nik