Release the unmanaged resources that are used in the writer.
writer w = new writer("c:\somewhere...\sample.txt");
It calls the Dispose() method for releasing instances of System.IO.StreamWriter which is used in writer class.
The instance that called the Release() method is returned to the uninitialized state.
Links for reference