Hi,
I want to open a text file using fopen as the following:
if the file to be open named "file1.txt" is being used for another application (it is already opened or truncated), then I'd like to open another file named "file2.txt", to update it with fwrite function.
How to detect if the file1.txt is already opened or being used?
Please somebody may help me?
Cortez
I want to open a text file using fopen as the following:
if the file to be open named "file1.txt" is being used for another application (it is already opened or truncated), then I'd like to open another file named "file2.txt", to update it with fwrite function.
How to detect if the file1.txt is already opened or being used?
Please somebody may help me?
Cortez