Take the 2-minute tour ×  The user chooses multiple files
through dialogBox:  OpenFileDialog dialF = new OpenFileDialog();
DialogResult dialR = dialF.ShowDialog();   filesRepNames =
dialF.FileNames;  // save the name of files for later use  And
these files are stored in an array of string. The name ( for
each) is the full address of the file. I just want to store the
name of the file by its own,Not whole the full address of each
file. Is there any way to store only the filename but not the
whole information.  example) I don't want:   I want only:   Note
that these are Multiple Files not one,otherwise I could use the
property "fileinfo"  share|improve this question add comment  3
Answers  up vote 4 down vote accepted  You can use LINQ with
method Path.GetFileName:   filesRepNames =
dialF.FileNames.Select(p => Path.GetFileName(p)) share|improve
this answer Here's the MSDN doc for Path.GetFileName(). –  Bob.
Oct 4 '12 at 17:05 @Bob.: thanks, I have edited my answer – 
Cuong Le Oct 4 '12 at 17:07 Always glad to h