Forum > Operating Systems

Muti-platform file-system navigation.

(1/1)

Человек_Борща:
Greetings!

I start writing application for several operating systems. The big problem for me, is file-system navigation, and I/O operations.

Can anybody explaing, how to use pathes in linux OS?
e.g. I doing DeleteFile('D:\File.txt') or TStrings.LoadFromFile('D:File.txt') in windows.

Other:
In linux where install my application?
How I can get path where application binary are located? e.g. ExtractFilePath(ParamStr(0))
Where the temporary folder?

Bart:
Start at this wiki page

Bart

Человек_Борща:
Thanks.

How I can add some article to wiki, or translate some article?

mig-31:
For Linux standard program installation path
1) for binary file /usr/bin
2) libraries (dll/so) /usr/lib or usr/lib64
3) application settings for user /home/<user name>/<.applicationname>(application name really starts with dot)

You can obtain paths by using FreePascal(Lazarus) functions, how told to you @Bard

Leledumbo:

--- Quote from: mig-31 on January 13, 2015, 03:53:16 pm ---2) libraries (dll/so) /usr/lib or usr/lib64

--- End quote ---
Recently /usr/lib32 also exists on 64-bit systems, where /usr/lib already contains 64-bit libraries, /usr/lib64 is simply a symlink to /usr/lib on such a system.

Navigation

[0] Message Index

Go to full version