[fpc-devel] Can't read file written as result of TFileStream
Lukas Gradl
fpc at ssn.at
Sat Sep 13 13:56:17 CEST 2008
How's WRITE_FILEMODE defined - looks like this is the problem, don't
know how it has to be set for ReadWrite...
Try to omit it completely,
TFileStream.Create(Filename, fmCreate);
Using Linux this gives you a file with permissions set to 644 - which
should work for macos to, afaik...
regards
Lukas
Alex Simachov schrieb:
> Hello All,
>
>
> I'm writing file using TFileStream (0.9.25 lazarus/fpc 2.2.2/mac os x 10.5.4).
>
> Code:
> TFileStream.Create(Filename,fmCreate,WRITE_FILEMODE);
>
> But then I can't read it because I don't have any
> permissions (ever to read) for this file.
>
> (File is created under /Users/MyName/ directory. )
>
> Any suggestions?
>
> Thanks in advance for answer!
>
> P.S. I'm novice at this list and I've found any FAQ/rules - only note
> that this list is intended for technical questions/problems.
> So if I should ask at other list - please let me know.
>
> Sincerely yours,
> Alex Simachov
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
--
--------------------------
software security networks
Lukas Gradl <fpc#ssn.at>
Eduard-Bodem-Gasse 9
A - 6020 Innsbruck
Tel: +43-512-214040-0
Fax: +43-512-214040-21
--------------------------
More information about the fpc-devel
mailing list