Completed draft of file writing

This file write uses a class, that opens a file when you make the
object, and then closes it when the object's destructor is called.