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

Home » Public Forums » archive » Where should I put a preferences file?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Where should I put a preferences file? [message #13525 is a reply to message #13428] Fri, 13 November 1998 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
Liam Gumley wrote:
>
> I have an IDL application in which it would be useful to store a
> preferences file for each session. For example, this would allow the
> application to remember the last 4 data files loaded.
>
> On a Unix system, the name and location for this file would be something
> like
>
> "$HOME/.idlapp"
>
> However my application needs to run on Windows and Macintosh systems as
> well. Is there a standard file name/location I can use on Win and Mac
> systems?
>
> Cheers,
> Liam.
>
> ---
> Liam E. Gumley
> Space Science and Engineering Center, UW-Madison
> 1225 W. Dayton St., Madison WI 53706, USA
> Phone (608) 265-5358, Fax (608) 262-5974
> http://cimss.ssec.wisc.edu/~gumley

I always use !DIR + sep + 'this_pref' where sep is defined correctly '\
or :'. For unix I usually use getenv('HOME')+'/'+'.this_pref'. Since
IDL includes no intrinsic (read portable) way to create directories, you
must use the one included by default in all IDL sessions. This can get
to be bothersome for a large collection of preference files, and
therefore it seems that the ability for IDL to create and check on the
existence of directories in a system-generic way would be valuable.

JD
--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: More Questions on 24 bit color
Next Topic: Talking with my C data

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

Current Time: Sat Oct 11 22:08:01 PDT 2025

Total time taken to generate the page: 2.56091 seconds