system("wc -l < 00403.dat");
1234
ifstream is("00403.dat"); string dummy; int lines=0; while (getline(is,dummy))lines++;
:-)