4 ms·
Use LinqPad then it's not cheating. It becomes: File.WriteAllLines(args[1], File.ReadAllLines(args[0]).OrderBy(x => x));
by foobarred 13y ago
Use LinqPad then it's not cheating. It becomes:
File.WriteAllLines(args[1], File.ReadAllLines(args[0]).OrderBy(x => x));
- usea 13y agoI did actually use LINQPad. My comment was in jest :P However, there's no Main in LINQPad which takes string[] args. Also File.WriteAllLines takes an array as its second parameter, while OrderBy returns an IEnumerable.