Output to a file
- To: mathgroup at smc.vnet.net
- Subject: [mg57022] Output to a file
- From: Namrata Khemka <namrata.khemka at gmail.com>
- Date: Thu, 12 May 2005 02:34:08 -0400 (EDT)
- Reply-to: Namrata Khemka <namrata.khemka at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
Hello,
I want to write the following list in a file, (and below is what I did)
testList = {{1, 8}, {2, 9}, {3, 10}, {4, 11}, {5, 12}, {6, 13}, {7, 14}};
str = OpenWrite["test.dat"];
Write [str, testList]; Close[str];
test.dat looks like
{{1, 8}, {2, 9}, {3, 10}, {4, 11}, {5, 12}, {6, 13}, {7, 14}}
But, I want the test.dat to look like:
1 8
2 9
3 10
4 11
and so on...
Can anyone give me any suggestions as to how I can accomplish this?
Thanks a lot in advance....
Namrata