Hello,
this might be a simple question for proffessional programmers, but I can not solve it.
I wrote two programs in PBCC/4.0. Each program will read and write data to the same .txt file. But I get error messages if one of those programs is writing to the .txt file, during the other program is reading this .txt file.
How can both programs write and read to the same .txt file at the same time. Priority is that the programs can write to the .txt file. It does not matter if one program can not read data, because the other one is writing. But it should not happen that one or both will crash.
Thanks!
Martin
this might be a simple question for proffessional programmers, but I can not solve it.
I wrote two programs in PBCC/4.0. Each program will read and write data to the same .txt file. But I get error messages if one of those programs is writing to the .txt file, during the other program is reading this .txt file.
How can both programs write and read to the same .txt file at the same time. Priority is that the programs can write to the .txt file. It does not matter if one program can not read data, because the other one is writing. But it should not happen that one or both will crash.
Thanks!
Martin
Comment