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

Home » Public Forums » archive » Re: ascii_template
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
Re: ascii_template [message #20976] Thu, 03 August 2000 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Luis Alonso (luis.alonso@uv.es) writes:

> my question for tonite (here in the old world) is:
> i've got an ascii file i need to read zillions of times, and i don't want to
> deal with the bother of filling the ascii_template dialog on and on
> so, is there a way to store in a file that template, and be able to recover
> it to use with read_ascii?

I hear in the old world, they turn the on-line help
off at 5PM. :-(

Try this:

mytemplate = ASCII_TEMPLATE("mydatafile.dat")
FOR j=0,zillion-1 DO BEGIN
data[j] = READ_ASCII(TEMPLATE=mytemplate, datafile[j])
ENDFOR

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Top 10 for old farts
Next Topic: Shortlist of IDL improvements

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

Current Time: Wed Oct 08 15:23:17 PDT 2025

Total time taken to generate the page: 0.00545 seconds