예제 #1
0
 public void logToFile()
 {
     using (var outputFile = new StreamWriter(fileName, true))
     {
         outputFile.WriteLine(state.ToString());
     }
 }
예제 #2
0
        public void AllStep()
        {
            PrgState prg = repo.GetCurrentPrg();

            try
            {
                while (true)
                {
                    OneStep(prg);
                    repo.LogPrgStateExec();
                    System.Console.WriteLine(prg.ToString());
                }
            }
            catch (System.Exception ex)
            {
                System.Console.WriteLine();
                System.Console.WriteLine(ex);
            }
        }
예제 #3
0
 private void displayCrtPrgState(PrgState state)
 {
     Console.Write(state.ToString());
 }
예제 #4
0
 public void logPrgStateExec(PrgState state)
 {
     File.WriteAllText(this.log, state.ToString());
     Console.WriteLine(state.ToString());
 }
예제 #5
0
        public void logPrgStateExec()
        {
            PrgState p = programStates[0];

            System.IO.File.AppendAllText(logFilePath, p.ToString());
        }