Added several functions needed by fods for handling file streams.
Added several functions needed by fods for handling file streams.

cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw,cjungmann/schemafw