MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Printing Lists to file without {}

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66030] Re: Printing Lists to file without {}
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Thu, 27 Apr 2006 02:26:31 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 4/26/06 at 4:37 AM, luisaph at terra.es (Luis) wrote:

>I need to write list to a file. To do so, I'm typing:

>output = OpenWrite["prueba.out"]; Write[output, Take[ao, {1, 100}]];

>It writes each value but it starts and ends using brackets. i.e. it
>writes: '{0.2, 0.4, ... }

>How could I avoid them?

I am guessing from your remarks above you want a comma separated values format. If so, the simplest most direct way to achieve this would be

Export[filename, data, "CSV"]

Use the help browser and look up Export to see what other formats are available.
--
To reply via email subtract one hundred and four


  • Prev by Date: Re: Printing Lists to file without {}
  • Next by Date: Selecting table rows
  • Previous by thread: Re: Printing Lists to file without {}
  • Next by thread: Re: Printing Lists to file without {}