C#, need to extact the file name from full path

laptop_01

Newcomer
Joined
Feb 6, 2003
Messages
14
Hi;

I got a string like this

X:\program file\myfolder1\myFolder2\myfile.dat

I need to extract myfile.dat out of this using C#. In VB, there is a nice instrRev method that allowed me to march backward from end of string. Is there something similar in C#

Thansk
 
Back
Top