outputting lists to a file
- To: mathgroup at smc.vnet.net
- Subject: [mg9837] outputting lists to a file
- From: Ian Hawkins <Ian.Hawkins at tao.j-sainsbury.co.uk>
- Date: Fri, 28 Nov 1997 05:35:50 -0500
- Organization: Sainsbury's Innovation Team
- Sender: owner-wri-mathgroup at wolfram.com
I have a simple problem, Suppose I have a mathematica list that represents a number of n-dimensional vectors. e.g. {{2,3},{3,2},{6,5},{7,7},{1,1}} which represents five 2d vectors. Does anyone know an easy way of outputting this list to a file so that each line contains just a single n-dim vector with elements seperated by either spaces or commas. e.g. for the above example the file should be: 2 3 3 2 6 5 7 7 1 1 Or 2,3 3,2 6,5 7,7 1,1 thanks, Zahir.