Device File System Access

Applications can access the file system using the SDL file abstraction or by directly calling the POSIX (Portable Operating System Interface for UniX) file functions.

Finding your application's directory on the device

When an application is launched, its current working directory is "/". You can use the Palm Development Library's PDL_GetCallingPath function to find your application's location on the device.

Note:

Do not hard code the application's absolute path--this is subject to change.

Saving persistent application data on the device

You can use the Palm Development Library's PDL_GetDataFilePath function to get a safe location on the device for saving application data. This location is segregated from the application's installed files, allowing you to replace or remove the application without destroying its generated data files.

Additionally, all applications have access to the /media/internal/ directory.