For example, given the output of ls -l:

    total 329
    -rwx------  1 reid  staff    1734 Jun 22 14:52 prog
    -rw-------  1 reid  staff   21510 Apr  6 12:10 tmp.txt
    -rwxr-xr-x  1 reid  staff    8968 Feb  1 2013 xyz
    -rw-r--r--  1 reid  staff      88 Feb 15 2013 xyz.c

how could I store each line in a separate string using scanf?