writing

C++ Problem writing to a file

My Code: std::ofstream m_myfile, m_myfile.open ("zLog.txt"); m_myfile << "Writing this to a file " << " and this " << endl; when this C++ Program runs, I have another program that needs to read this file. The problem is that the file is locked by C++ and I cannot read it from the other program. I know there is something I have to d...

Where to find typing efficiency tips?

E.G. I was reading some source code recently. and someone had the code. array = "name1 name2 name3 name4 name5".split() Which is really fast/easy to write. While if I had written the code I would've went. array[0] = name1 array[1] = name2 etc... Which takes way longer! So I was wondering where I could find some writing ef...