Added definitions for some file io functions.

These are the functions that dump_to_file() and th08_open_scorefile() are dependent on.