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

Home » Public Forums » archive » Re: Formatting WRITE_CSV output
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: Formatting WRITE_CSV output [message #70888] Thu, 13 May 2010 12:45 Go to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
> Not directly. If your data are strings, you can format them first,
> then give them to write_csv, such as
>
> write_csv,file,string(data1,format=...),string(data2,format= ...)
>
> But write_csv encapsulates strings in quotes, which is probably
> undesirable if your data were not strings.
>
> So it is probably better to use plain old printf with the format you
> want plus the commas to separate the fields.


Thanks, pp. I guess I'll go with printf. Another disadvantage of
write_csv is that it limits the number of output columns to 8.
[Message index]
 
Read Message
Read Message
Previous Topic: Help on EDGE_DOG
Next Topic: quit/close events on mac

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

Current Time: Fri Oct 10 02:10:57 PDT 2025

Total time taken to generate the page: 0.48093 seconds