Horje
c++ overwrite file Code Example
c++ overwrite file
#include <fstream>

int main ()
{
   std::ofstream ofs("test.txt", std::ofstream::trunc);

   ofs << "lorem ipsum";

   ofs.close();
}




Cpp

Related
pass c++ Code Example pass c++ Code Example
eosio name to string Code Example eosio name to string Code Example
qt qstring to double Code Example qt qstring to double Code Example
ue4 spawn actor c++ Code Example ue4 spawn actor c++ Code Example
how to find if number is perfect square Code Example how to find if number is perfect square Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8