string d = "c://ad/df/cv/gh/fgg.txt"; d.Substring(d.LastIndexOf('/') + 1); Time.realtimeSinceStartup;