in reply to Re: Need to read certain number of chars in a file
in thread Need to read certain number of chars in a file

Guys thanks a lot for your quick answer and you were rigth about the C program it was easier and simpler

#include <stdio.h> main() { int c, i = 1; while (i <= 100){ c = getchar(); putchar(c); i++; } }

Replies are listed 'Best First'.
Re^3: Need to read certain number of chars in a file
by ikegami (Patriarch) on Oct 19, 2010 at 03:10 UTC

    The same in Perl:

    print getc() for 1..100;