Thank you all.
Colin.
I am already using an asynchronous timer for my acquisition / control, so I'm quite sure in using open-read-write-close sequence. I asked for an alternative mainly to simplify the code: one function, one error code and nothing like open-the-first-file-check-the-error / open-the-second-file-check-the-error / read-check-the-error and so on.
😉Unfortunately the temporary file is necessary to me since the user wants to read test results during test execution so I want to minimize access to data file to reduce the possibility of file conflicts.
Steve.
I'll take a look to your program, even if I think in present application the other solution is safer. Thank you anyway.