Thank for your explanation about "AT" and "DOT"!!
I was thinking about semaphore solution, and the problem is that I have two processes running and both write in this file, so I think that it is not possible to use a variable between both processes.
Other solution is using a flag file, when someone open the file, create a file, and if other wants to open it, he will have to check if this file has been created, to know if someone is using the file.
But it is not a good solution, because I am using a embedded PC, so I am using a flash, so the numbers of writing is limited.
Thanks for your help!
Graci