Esempio n. 1
0
 private static TextWriter OpenWriter(Options options)
 {
     return(options.Decode
         ? File.CreateText(options.OutputFilePath)
         : (TextWriter) new RobbersLangWriter(File.CreateText(options.OutputFilePath)));
 }
Esempio n. 2
0
 private static TextReader OpenReader(Options options)
 {
     return(options.Decode
         ? (TextReader) new RobbersLangReader(File.OpenText(options.InputFilePath))
         : File.OpenText(options.InputFilePath));
 }