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