using while(1) instead of while(l) when reading data from file,why?