B Bluga Banned Nov 28, 2000 4,315 0 0 Feb 10, 2002 #1 when reading from a file, i can use : while ( fscanf(fp1, "%d%d", &i, &j)!=EOF ) to detect End Of File, how can i detect blank line? Thanks!
when reading from a file, i can use : while ( fscanf(fp1, "%d%d", &i, &j)!=EOF ) to detect End Of File, how can i detect blank line? Thanks!
Nothinman Elite Member Sep 14, 2001 30,672 0 0 Feb 10, 2002 #2 A blank line will contain only a carriage return (\n)
O Omegachi Diamond Member Mar 27, 2001 3,922 0 76 Feb 10, 2002 #3 can you show me the algorithm to rounding numbers?
B Bluga Banned Nov 28, 2000 4,315 0 0 Feb 10, 2002 #4 like this? while ( (fscanf(fp1, "%d%d", &i, &j)) != EOF || "\n" )