On Fri, 7 Dec 2007, el stamatakos wrote:
>
> Hi ,
> What I am trying to do is create a file and set the permissions to
>
> OwnerRead=true
> OwnerWrite=true;
> OwnerExecute=true;
> GroupRead=true;
> GroupExecute=true;
> OthersExecute=ture;
> OthersRead=True;
>
> This is for Linux
>
> how can I do this at runtime while creating the file.
You cannot do this with the standard savetofile. If you want that, you
must create the file yourself with the FileOpen() call from sysutils,
it has an argument to set the permissions on Linux. After that a
SaveToFile() should keep the permissions intact.
Michael.
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives