Can't create file using fstream in windows store app 8.1
问题 I'm using direct3D 11.1 to create my game,i want to store player last record in a file so here is my code:(it fails in !File.good() ) fstream File("Score.txt"); if (!File.good()) { return; } if (!File.is_open()) { return; } if (File.bad()) { return; } Writer.Write("Easy", getString(Scene->Score), File); File.close(); and here is my XMLWriter class to write in file: class XmlWriter { public: void Write(string const &replace, string const &replaceBy, fstream &file) { fstream tempFile; tempFile