[Lazarus] Multi-platform console application, how to handle file paths?

Bo Berglund bo.berglund at gmail.com
Tue Oct 29 13:02:15 CET 2019


On Tue, 29 Oct 2019 14:32:18 +0300, Mehmet Erol Sanliturk via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>In Windows XP , it is possible to use "/" instead of "\" . Therefore , it
>is NOT necessary to make two different file path representations . I am not
>using any Windows now , therefore I can not say anything about last Windows
>versions .
>
>It is very easy to check whether "/" is usable on your Windows : Use a file
>path with "/" . My opinion is that it will find the related file assuming
>that your file path is correct other than "/" .
>

OK, did not know this.
Now tested on Windows 7 via Windows Explorer and the command line.
Both work fine...
So I will use forward slashes in all paths from now on.


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list