On Sat, 27 May 2006, Dale Welch wrote:

> Is there a tutorial on how to set up your options files and data files
> for cross platform compatibility as to where to store them?
>
> I have a simple program.... (for now hangman, others in the works)
> but i want the user to be able to offer alternative data files.
> Or where they upgrade data for global use, but if they didn't have read/write
> then it would get stored in their local user folder.
>
> I guess i need to know
>    1.  Where is the Main application and it's installed files stored.
>    2.  Where is the user's "home" directory.   are there any routines out 
> there which already will return
>        these values regardless of platform?
>
> 3. i need a directory in the user's home directory for my files...
>     the xmlpropstorage creates a file where i would probably like to
>     create a directory  (thought about letting it create it's file and then 
> just ask it for where it is).
>
> 4.  global data updates.
>    i want to be able to have the program download updated datafiles and 
> install them for global usage...
>        is there any cross-platform way for me to do this?

Not really.
But:
The SysUtils unit contains a set of routines that return locations for user 
specific/global
config files/directories:

http://www.freepascal.org/docs-html/rtl/sysutils/getappconfigfile.html
http://www.freepascal.org/docs-html/rtl/sysutils/getappconfigdir.html
http://www.freepascal.org/docs-html/rtl/sysutils/sysconfigdir.html


Michael.


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to