i have c++ program (turbo c++ ver 3) that write/read data into files. when multiple instances of the program is run and at particular point of execution , when the two instance of the program open and write into the file at the same time , some information is lost
if(!filein)
is not ideal for this situation. Its a issue with sync i guess
Is there any way that i can check if the file is opened or not before performing any operation
thank you