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

Home » Public Forums » archive » Writing to ASCII files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Writing to ASCII files [message #21336] Mon, 21 August 2000 00:00
Jasmeet Judge is currently offline  Jasmeet Judge
Messages: 1
Registered: August 2000
Junior Member
Hi,
I just started reading this newsgroup. I found out
about its existence after 6 yrs of IDL-use on UNIX!! I never
could write an ascii file with columns of no.s from IDL.
I have two specific qs. regarding this:

1. When I use printf (and even writeu), it gives me
non-sensible results. Here is what I am doing

openw,unitno,filename
some loop with i
printf,unitno,item1(i),item2(i)
end loop
close,unitno

What I would like is:
item1(0) item2(0)
item1(1) item2(1)
item1(2) item2(2)
item1(3) item2(3)

Instead, I get some unreadable jargon (I guess it is writing
binary?). Is there a way to do this in IDL?

2. Is there a way to open a file to write (with openw) but have
it keep appending data at the end of file with every call to printf?

It would simplify my life considerably, if I can figure this
out! I have avoided dealing with this for too long....

Thanks so much for your help,
Jasmeet
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL: Texture mapping onto DEM
Next Topic: "Ghostfont" - reproduced

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

Current Time: Wed Oct 08 18:13:38 PDT 2025

Total time taken to generate the page: 0.00588 seconds