Re: ascii_template [message #20976] |
Thu, 03 August 2000 00:00 |
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
|
|
|