fork download
  1. using System;
  2. using System.IO;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string fileName = "Filename.OUT";
  9. string seed = "6F9619FF-8B86-D011-B42D-00C04FC964FF";
  10. string input = fileName + seed;
  11. Console.WriteLine(seed.Length);
  12. Console.WriteLine(Guid.NewGuid().ToString().Length);
  13. string result = input.Substring(0, input.Length - seed.Length);
  14. Console.WriteLine(result);
  15. var file = new FileInfo(result);
  16. Console.WriteLine(file.Extension);
  17.  
  18. }
  19. }
Success #stdin #stdout 0.06s 34216KB
stdin
Standard input is empty
stdout
36
36
Filename.OUT
.OUT