Re: [fpc-pascal] Avoiding File conflicts

2021-01-05 Thread Bart via fpc-pascal
On Tue, Jan 5, 2021 at 3:30 PM wkitty42--- via fpc-pascal wrote: > provided the other program opens the file for creation properly (eg: > blahDenyAll), right? Maybe use fmShareExclusive when opening the file. That name suggest you can only open if you are the only one? -- Bart

Re: [fpc-pascal] Avoiding File conflicts

2021-01-05 Thread wkitty42--- via fpc-pascal
On 1/4/21 11:06 AM, Bart via fpc-pascal wrote: On Mon, Jan 4, 2021 at 3:19 AM James Richters via fpc-pascal wrote: I suspect that I happen to see the file is there and try to read it before the program that created the file is done writing it. What is the proper way to detect the file is in u

Re: [fpc-pascal] Avoiding File conflicts

2021-01-04 Thread Bart via fpc-pascal
On Mon, Jan 4, 2021 at 3:19 AM James Richters via fpc-pascal wrote: > I suspect that I happen to see the file is there and try to read it before > the program that created the file is done writing it. > What is the proper way to detect the file is in use so I don't bother trying > to open it un