Re: Createing ASCII_TEMPLATE [message #11134] |
Mon, 02 March 1998 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Jeff (jeffe@fl.ensco.com) writes:
> I use the GUI to create an ASCII_TEMPLATE to read some simple
> Text files.
>
> Is there a way to save this template so the next time I bring
> up IDL I don't have to recreate the entire template again?
The easiest thing to do, I think, would be to SAVE the
template. Then, just RESTORE it when you want to use it.
myTemplate = ASCII_TEMPLATE(mydatafile)
Save, myTemplate, File='mytemplate.dat'
When you want to use it, type:
Restore, 'mytemplate.dat'
Help, myTemplate, /Structure
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|