File handling functions for SMAUG by Greg (Keberus Maou'San ) Mosley and Darien (email@example.com)
This code is meant to replace fopen and fclose calls so the mud can keep track of which files are
open and the location from where they file opening was called. It now also writes to a temporary
file first, then once all the writing is done, it renames the file to minimize the likelihood
of corrupting files.