io: rewind to start during length calculation; main: dynamic sizes in read implementation
io: Adding io_file_read function

This function reads the given filename automagically.
io: Some improvements to the io_read_file function; verify: remove double printf