Use C# destructor syntax for finalization code. This destructor will run only if the Dispose method does not get called. It gives your base class the opportunity to finalize. Do not provide destructors in types derived from this class.
Open and writes text to a file. The append argument specify the append or overwrite mode, so it is possible to append data to an existing file or overwrite an existing file. The file will be created if they doesn't exist.