fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string fill = @"one two three four";
  8. string[] result = fill.Split(new string[] { " ", Environment.NewLine },
  9. StringSplitOptions.None);
  10.  
  11. foreach (var s in result)
  12. {
  13. Console.WriteLine(s);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.04s 33960KB
stdin
Standard input is empty
stdout
one
two
three
four