public void Dispose()
 {
     _sw?.Close();
 }