>>232
# include <stdio.h>

int main(void)
{
int c;
FILE *file = fopen("あるファイル", "r");
int nbytes = 0, nlines = 1;
while((c = getc(file)) != EOF) {
  if(c == '\n') nlines++;
  nbytes++;
}
fclose(fp);
printf("行数:%d バイト数:%d\n", nlines, nbytes);
}