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