You are on page 1of 1

#include<fstream.

h>
#include<conio.h>
void main()
{
char a[20];
ifstream infile("new.txt");
while(infile)
{
infile.getline(a,20);
cout<<a;
}
getch();
}

You might also like