public void Restore(string file) { using (MemoryStream stream = MpqArchive.Restore(file)) { using (FileStream streamOut = File.Create(file)) { stream.CopyTo(streamOut); } } }