//Counter Number Of Lines Already Existing In The File
do
{
file >> num; //Get ID
if(!file)
break;
counter++;
//Get Next Line
do
{
c = (char)file.get();
}while(file.good() && c != '\n');
}while(file.good());
Every line shall begin with an ID(long);
The Algorithm shall count the number of lines existing...