Horje
file open cpp Code Example
file open cpp
#include <iostream>
#include <fstream>
using namespace std;

int main () {
  ofstream myfile;
  myfile.open ("file.txt");
  myfile << "Writing to a file.\n";
  myfile.close();
  return 0;
}




Cpp

Related
std::stack Code Example std::stack Code Example
binary exponentiation modulo m Code Example binary exponentiation modulo m Code Example
get line C++ Code Example get line C++ Code Example
max of a vector c++ Code Example max of a vector c++ Code Example
get thread id c++ Code Example get thread id c++ Code Example

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