Fix some file handling lines. Now properly reads a file and sets the
inventory... Just gotta fix the closing event.