Get Sequential Text File1

//This program will input from two squential text file

#include <fstream.h>
#include <iostream.h>

ifstream in_fl; //Declare a file pointer for reading
ifstream in_fl2;
main()
{

        char in_stg;
        float num;
        in_fl.open ("names.dat", ios::out); //Create the sequential (text) file
        in_fl2.open ("names2.dat", ios::out);//Creating a 2nd sequential file

        //inputting from names.dat
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;
        in_fl.get (in_stg);
        cout << in_stg;

        //inputting from names2.dat
        in_fl2.get (in_stg);
        cout << in_stg;
        in_fl2.get (in_stg);
        cout << in_stg;
        in_fl.close();// closing the sequential (text) file
        in_fl2.close();//closing the second file

return 0;
}
/*
abcdef
g**
*/