In article <192 at broadway.UUCP> furlani at broadway.UUCP (John L. Furlani) writes: - This snippit of code should do it. It will count the newlines, but it -won't count the returns. - while ((c = getc(infile)) != EOF) - if (c == '\r') chcnt++; Oh, really?