io: Adding io_file_read function

This function reads the given filename automagically.