Here is the sample code from this site in the tutorial....
Where does the "this" text come from, that forms in the program window?
using namespace std;
//Creates an instance of ofstream, and opens example.txt
ofstream a_file ( "example.txt" );
// Outputs to example.txt through a_file
a_file<<"This text will now be inside of example.txt";
// Close the file stream explicitly
//Opens for reading the file
ifstream b_file ( "example.txt" );
//Reads one string from the file
//Should output 'this'
cout<< str <<"\n";
cin.get(); // wait for a keypress
// b_file is closed implicitly here
May be a stupid question but I have read this code over and over and cant seem to find where it originates from....