Horje
how to do file handling in c++ Code Example
how to do file handling in c++
// basic file operations
#include <iostream>
#include <fstream>
using namespace std;

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




8

Related
convert string to char c++ Code Example convert string to char c++ Code Example
removing a character from a string in c++ Code Example removing a character from a string in c++ Code Example
range of long long in c++ Code Example range of long long in c++ Code Example
string to char array c++ Code Example string to char array c++ Code Example
input a string in c++ Code Example input a string in c++ Code Example

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