Exemplo n.º 1
0
        public void Save(LogType type, ICmd icmd)
        {
            string cmd = icmd.ToString();

            CmdGuidDB.Ins.Add(icmd.GetOptID());
            string       file = T2F(type);
            FileStream   fs   = new FileStream(file, FileMode.Append, FileAccess.Write, FileShare.ReadWrite);
            StreamWriter w    = new StreamWriter(fs);

            w.WriteLine(cmd);
            //System.IO.File.AppendAllText(T2F(type), cmd + "\r\n");
            w.Close();
            fs.Close();
        }