Ciralia
April 24th, 2006, 03:51 PM
With an OpenFileDialog object, you can say:
Dim openFileDialog As New OpenFileDialog()
Dim fileName As String
fileName = openFileDialog.FileName()
This code gets the file name as a string but it also includes the path like: C:\Desktop\temp.txt. Is there a way to get the file name itself without the path, like temp.txt?
Dim openFileDialog As New OpenFileDialog()
Dim fileName As String
fileName = openFileDialog.FileName()
This code gets the file name as a string but it also includes the path like: C:\Desktop\temp.txt. Is there a way to get the file name itself without the path, like temp.txt?