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

Home » Public Forums » archive » writting formatted ascii file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
writting formatted ascii file [message #36657] Thu, 09 October 2003 08:56 Go to previous message
Francois Leduc is currently offline  Francois Leduc
Messages: 5
Registered: October 2003
Junior Member
Hello,

I have a 13 columns by 5 rows floating that I want to save in a ASCII file.
I can use the following command:

openw, 1, 'd:\file.txt'
printf, 1, FORMAT = '(13(F11.4))', array
close, 1

My question is: How to replace the 13 value by a variable ?

By doing this:
a = 13
printf, 1, FORMAT = '(a(F11.4))', array

I get an error message or the format is not in the proper way.

Thank you very much.

Francois.
[Message index]
 
Read Message
Read Message
Previous Topic: Segmentation fault read_tiff
Next Topic: Two little questions:

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

Current Time: Fri Oct 10 06:45:35 PDT 2025

Total time taken to generate the page: 1.99695 seconds