• Working with Input, Output and Files
    o Introduction
    o Stream Class Model of C++ (istream,ostream,ifstream,ofstream,iostream)
    o Text Files
    o Test mode input using ‘extraction’(>>) operator, ‘get()’ function and ‘getline()’ function
    o Text mode output using ‘insertion’ (<<) operator and ‘put()’ function

include

include

include

void main()
{
ofstream fout(“c:\Hello.txt”);

clrscr();
cout<<"Hello"<<endl;
int x=22;

fout << x;
getch();

}

Working with Input, Output and Files

Leave a Reply

Your email address will not be published. Required fields are marked *