*count the lines in the file using a fgets loop *fseek to the start *do fgets for total lines-2 *there's your line