Re: [fpc-devel] Can't read file written as result of TFileStream

2008-09-13 Thread Lukas Gradl
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

[fpc-devel] Can't read file written as result of TFileStream

2008-09-12 Thread Alex Simachov
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. )