[fpc-pascal] File-functions on various platforms??
Michael Van Canneyt
michael at freepascal.org
Fri Jun 10 01:16:58 CEST 2005
On Fri, 10 Jun 2005, Thomas Zastrow wrote:
> > no need to use these functions, even.
> > Michael.
> Michael, thank you very much :-)
> At the moment, I'm converting a lot of my old Delphi-Code to Lazarus / FPC.
> I'm working on a project which should run on windows *and* on Linux .. the
> most difficulties I have is when it comes up to deal with File-Paths.
> The most of my old procedures and functions are running fine with Lazarus
> under Windows - but not under Linux, because they have something like the "\"
> hardcoded for dividing directories.
> I'm realy not sure how to handle this ... perhaps somebody has some
> procedures, dealing with pathes, directories and so on ... and using *no*
Check the sysutils unit. It's your best bet. It contains a number of calls to
deal with must situations; I don't think I ever needed a function for treating
files which wasn't in sysutils. But maybe my needs are limited :)
More information about the fpc-pascal