State the output File Operation's 3

/*
    State the output
*/
#include<iostream>
#include<fstream>
#include<cctype>
using namespace std;

int main()
{
    ifstream ifile;
    ifile.open("text.txt");

    char last;

    ifile.ignore(256,' ');
    last=ifile.get();

    cout<<"\n Your initial is "<<last;
    ifile.close();

    return 0;
}

Previous
Next Post »