fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string temp = "Hello;World;Test;Split";
  8. // string[] tempSplited = temp.Split(" ", 6, StringSplitOptions.RemoveEmptyEntries);
  9. string[] tempSplited = temp.Split(";", 6, StringSplitOptions.RemoveEmptyEntries);
  10. foreach (string str in tempSplited) {
  11. Console.WriteLine(str.ToString());
  12. }
  13. }
  14. }
Success #stdin #stdout 0.02s 15908KB
stdin
Standard input is empty
stdout
Hello
World
Test
Split