Release the unmanaged resources that are used in the writer.
//anyWriter is a instance of writer type.
Call 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