Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

create file c++

// using ofstream constructors.
#include <iostream>
#include <fstream>  

std::ofstream outfile ("test.txt");

outfile << "my text here!" << std::endl;

outfile.close();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #create #file
ADD COMMENT
Topic
Name
1+9 =