April 24th, 2003, 11:02 PM
How can i ckeck the no of iems of a input file
if i if i wanna write a program that sort an absolute maximum of 5000 items, print error message if more than 5000 in that file. how can i read that file and check its item....
April 25th, 2003, 02:08 AM
int count = 0;
April 25th, 2003, 11:11 AM
Are these items of fixed length? If so, then a quick-and-dirty way would be to get the file length and divide it by that fixed length to get the number of items.