Added File IO funcs

And added a semi-stub for testing the file io funcs, need to checking
for msg body that contains a valid tag (which would be an invalid body),
and add testing for reading and for writing an invalid body