fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string source = "comment me" + Environment.NewLine + "line two.";
  8. string[] lines = source.Split('\r', '\n');
  9. foreach (string line in lines)
  10. {
  11. Console.WriteLine("//" + line);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.02s 33808KB
stdin
Standard input is empty
stdout
//comment me
//line two.