Simple file reader example in C