#include"fstream.h"
#include"string.h"
int main()
{
ofstream fout;
fout.open("gne.txt");
char ch[50];
int len,count=0,sp=0,line=0;
fout<<"guru nanak dev engg. college \n ludhiana \n bracnh \n d2IT ";
fout.close();
ifstream fin;
fin.open("gne.txt");
while(!fin.eof())
{
fin.getline(ch,80);
cout<
else
count++;
}
line++;
No comments:
Post a Comment