c 2b 2b overwrite file

Solutions on MaxInterview for c 2b 2b overwrite file by the best coders in the world

showing results for - "c 2b 2b overwrite file"
Leana
29 Feb 2020
1#include <fstream>
2
3int main ()
4{
5   std::ofstream ofs("test.txt", std::ofstream::trunc);
6
7   ofs << "lorem ipsum";
8
9   ofs.close();
10}
similar questions
queries leading to this page
c 2b 2b overwrite file