fork download
  1. using System.IO;
  2. using System.Linq;
  3.  
  4. namespace ConsoleApplication1
  5. {
  6. internal class Program
  7. {
  8. private static void Main(string[] args)
  9. {
  10. var file1 = "file1";
  11. var file2 = "file2";
  12. var file3 = "file3";
  13. File.WriteAllLines(file3, File.ReadAllLines(file1).Except(File.ReadAllLines(file2)));
  14. }
  15. }
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(13,18): error CS1502: The best overloaded method match for `System.IO.File.WriteAllLines(string, string[])' has some invalid arguments
/usr/lib/mono/2.0/mscorlib.dll (Location of the symbol related to previous error)
prog.cs(13,18): error CS1503: Argument `#2' cannot convert `System.Collections.Generic.IEnumerable<string>' expression to type `string[]'
Compilation failed: 2 error(s), 0 warnings
stdout
Standard output is empty