Read from a file after have written to it with fstream - always empty

前端 未结 0 685
遇见更好的自我
遇见更好的自我 2020-12-12 05:02
std::fstream file("filename", std::fstream::in | std::fstream::out | std::fstream::trunc);
    if (file)
    {
        file << "Some text"          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题