Re: Save List to a file
- To: mathgroup@smc.vnet.net
- Subject: [mg12137] Re: [mg12046] Save List to a file
- From: Sean Ross <seanross@worldnet.att.net>
- Date: Mon, 27 Apr 1998 01:46:19 -0400
- References: <199804240552.BAA13237@smc.vnet.net.>
Carlo Marinelli wrote: > > Hi! > > Is there something working similarly to ReadList, but Writing a list to > a file in ASCII format, for example, suitable for using the data in > other software, like a spreadsheet or another system? Thank you. > > Carlo > > --- > Carlo Marinelli > carlo@itp.ucsb.edu > http://members.tripod.com/~cmarinelli No, there is nothing automatic, but it is a fairly simple programming problem to solve: Take your list and transform it to a string with ToString. Then use the string manipulation commands to delete the curly braces or replace commas with spaces. If you try and put return characters into a string, it will just show the \n, so make separate WriteAppends for each line you want. -- Remove the _nospam_ in the return address to respond.
- References:
- Save List to a file
- From: Carlo Marinelli <carlo@itp.ucsb.edu>
- Save List to a file