コード例 #1
0
ファイル: SpoolCommand.cs プロジェクト: meikeric/dshell
        private void OpenSpool(string filename)
        {
            // open file
            OutputDevice spool = new TextWriterOutputDevice(new StreamWriter(filename));

            Application.SetOutDevice(OpenStackedDevice(outStack, spool));
            Application.SetErrorDevice(OpenStackedDevice(msgStack, spool));
            Application.Error.WriteLine("-- open spool at " + DateTime.Now);
        }
コード例 #2
0
ファイル: SpoolCommand.cs プロジェクト: deveel/dshell
 private void OpenSpool(string filename)
 {
     // open file
     OutputDevice spool = new TextWriterOutputDevice(new StreamWriter(filename));
     Application.SetOutDevice(OpenStackedDevice(outStack, spool));
     Application.SetErrorDevice(OpenStackedDevice(msgStack, spool));
     Application.Error.WriteLine("-- open spool at " + DateTime.Now);
 }