#include <iostream>
#include <fstream>

using namespace std;

int main()
{
    ofstream oFstream("file01.txt");
    oFstream << "Hello file.";
    oFstream.close();
    ifstream iFstream;
    iFstream.open("file01.txt");
    char word[100];
    iFstream >> word;
    cout << endl << word;
    iFstream >> word;
    cout << endl << word;
    //cout << "Hello world!" << endl;
    return 0;
}
