void OnDestroy() { m_logger.Close(); m_logger = null; FileStream fs = new FileStream("test_standard.txt" , FileMode.CreateNew , FileAccess.Write); BufferedStream buf = new BufferedStream(fs); foreach (string item in m_lstStandard) { byte[] bytes = Encoding.Unicode.GetBytes(item); buf.Write(bytes, 0, bytes.Length); } buf.Flush(); }
void OnDestroy() { m_logger.Close(); m_logger = null; }