Adding two new generic functions for messing with the file