c# - Get file name of file from full path? -
i have dragdrop enabled in winforms application, i'm getting list of items dropped , storing them in string array called files, in dragdrop event can like:
foreach (string file in files) { messagebox.show(file); }
which return like:
c:\users\myname\document.txt
is possible file name + extension (e.g. document.txt)? i'm not asking complete solution, hint me in direction?
Comments
Post a Comment