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

Home » Public Forums » archive » Write to file help...
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: Write to file help... [message #92579 is a reply to message #92578] Sun, 17 January 2016 16:27 Go to previous messageGo to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Sunday, January 17, 2016 at 12:55:35 PM UTC-7, dave poreh wrote:
> Folks,
> Hi,
> I am running an IDL code like this
> ......
> print, x
> print, y
> print, z
> print, t
>
> openw, lun, 'test.txt', /get_lun
> printf, lun,x,y,z,t
> free_lun, lun
> ........
> x,y,z, t are float numbers.
> What i want is like this:
> 1- first run: make a file like 'test.txt'and write the result to this file ('test.txt').
> 2- at the second run (and more), append the new x,y,z, t to the 'test.txt' file.
> At the end, i need a text file that holds all of my data in single 'test.txt'...
> Thanks for any kind of help in advance :)
> Cheers,
> Dave

openw, lun, 'test.txt', /get_lun, /append

Jim P.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDL Help Annoyance
Next Topic: i cann't open idl because idlde.exe has stopped working.

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

Current Time: Wed Oct 08 11:48:31 PDT 2025

Total time taken to generate the page: 0.00233 seconds