Opening .dat files
SailBlue5
Open /R refTempLog
It brings up a dialog that asks me to select a file, which is what I want; however it only shows the *.txt files until I tell it to show *.* files. I either want it to show the *.dat files or all files by default. Is there a way to do that?
Michael
In short, you want to use the /T flag or possibly the /F flag, if you are certain that users of your code will be using Igor 6.10 or greater.
December 2, 2008 at 07:36 am - Permalink
Use
open/R/T="????" refTempLog
to get what you want. If you do actually only ever want .dat files you can use:
open/R/T=".dat" refTempLog
and in all cases you can toggle the popup in the open-file dialog that says "Files of type:" from the default "Plain text files (*.txt)" to "All files (*.*)" (or the equivalent in Mactintosh) to select any file.
Patrick.
December 4, 2008 at 02:47 pm - Permalink