fork(3) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. String _message = "this is my long message which needs to be split in to two string after 160 characters. This is a long message. This is a long message. This is a long message. This is a long message. This is a long message.";
  8. Console.WriteLine("Part 1: {0}",_message.Substring(0,160));
  9. Console.WriteLine("rest of message: {0}",_message.Substring(160));
  10. }
  11. }
Success #stdin #stdout 0.04s 36848KB
stdin
Standard input is empty
stdout
Part 1: this is my long message which needs to be split in to two string after 160 characters. This is a long message. This is a long message. This is a long message. T
rest of message: his is a long message. This is a long message.