hi
is there any way that i give path and i receive the file name ?
for example:
i give: c:\MyPic\OldPic\me.jpg
and i get: me.jpg
thank's in advance
hi
is there any way that i give path and i receive the file name ?
for example:
i give: c:\MyPic\OldPic\me.jpg
and i get: me.jpg
thank's in advance
You may take a look at the Path.GetFileName method:
string filename = Path.GetFileName(@"c:\MyPic\OldPic\me.jpg");