/// <summary> /// д�ļ� /// </summary> /// <param name="filename"></param> /// <param name="data"></param> private void putFileData(string filename, string data) { StreamWriter writer = null; try { writer = new StreamWriter(filename, false, System.Text.Encoding.GetEncoding("gb2312")); writer.Write(data); writer.Close(); } catch (IOException e) { nSearch.DebugShow.ClassDebugShow.WriteLineF(e.Message); } finally { if (writer != null) writer.Close(); } }