My code is:
std::ofstream m_myfile, m_myfile.open ("zLog.txt"); m_myfile << "Writing this to a file " << " and this " << endl;
when this C ++ program starts, I have another program that should read this file. The problem is that the file is locked with C ++, and I cannot read it from another program. I know that I need to do something when I write code in some way in a C ++ Program, where it allows sharing. Can someone write exactly what I need. I killed it to death and still can't get it to work.
Some say close the file before another program reads it. I can not do this, the file must be open.
thanks
Brian source share