Hi.. How do I skip the first line of a text file. I am not using getline() so I think I cannot use ignore() function. Is there any other way to ignore first line ?
.................
FILE *in;
char line[1000];
char *token;
in = fopen(argv[1],"rt+");
if( in == NULL) exit(1);
int i=0;
while(! feof(in)) {
//in.ignore(1000, '\n');
// std::in.ignore ( 1000, '\n' );
fgets(line, 1000, in);
.................................
Thanks