[fpc-pascal] Paths on different OS's

L505 fpc505 at z505.com
Thu Jul 14 20:33:19 CEST 2005


Could someone tell me the way forward and backward slashes are handled easily?

For example this is sort of code bloat below
Is there some way around this:

{$ifdef unix}
path:= ExtractFileDir(paramstr(0)+'/somepath/directory/etc/';

{$ifdef win32}
path:= ExtractFileDir(paramstr(0)+'\somepath\directory\etc\';

Thank you.

 





More information about the fpc-pascal mailing list