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