! Convert a use of fopen/fwrite/fclose to file_put_contents (Mantis 4913...

...) and also have it report whether something was saved properly or not (another for #802)

Signed-off-by: Peter Spicer <sleeping@myperch.org>