comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Writing CSV files?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Writing CSV files? [message #37522] Tue, 06 January 2004 14:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jonathan Greenberg writes:

> Is there an easy way to write an array to an ASCII comma deliminated file
> (CSV)? I see a READ_ASCII command but no WRITE_ASCII. Thanks!

Here is an article that discusses one way to do this:

http://www.dfanning.com/tips/csv_file.html

You will find a reference there to a program named
WRITE_CSV_DATA that will write a 2D array and an
optional vector of column headers to a CSV file.

You might also think about WRITE_SYLK if you are trying
to write a file that can be opened in a spreadsheet.

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: Maximum likelihood question (ENVI)
Next Topic: Writing CSV files?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 02:59:58 PDT 2025

Total time taken to generate the page: 1.12098 seconds