Example #1
0
 public override void Write(string str)
 {
     base.Write(str);
     if (Entries.Count == cursor)
     {
         Entries.Add(str);
     }
     else
     {
         Entries[cursor] = Entries[cursor] + str;
     }
     log.Add(str);
 }
Example #2
0
        public override string ReadLine()
        {
            string s = base.ReadLine();

            log.Add(s);
            tw.WriteLine();
            return(s);
        }