I have an odd problem.
This code doesn't work for me.
m_myStream is declared as an fstream. Is there any special rule about when and/or where you can call these write functions? It's odd because the all it is doing is erasing whatever is in the document and not writing anything.
I've tried it with an ofstream too, but taht didn't work either.
Am I not seeing something glaringly obvious?
Code:
m_myStream.open("Highscores.txt", ios_base::out); if (m_myStream.is_open()) { m_myStream << "Hello"; } m_myStream.close();
m_myStream is declared as an fstream. Is there any special rule about when and/or where you can call these write functions? It's odd because the all it is doing is erasing whatever is in the document and not writing anything.
I've tried it with an ofstream too, but taht didn't work either.
Am I not seeing something glaringly obvious?
Comment