H Hrcko Nov 7, 2005 #1 How to extract file path from fileName? I'm using OpenFileDialog,but when i read a file I get full path. Hrcko
How to extract file path from fileName? I'm using OpenFileDialog,but when i read a file I get full path. Hrcko
C Chris Dunaway Nov 7, 2005 #2 Look at the static methods of the Path class. You could try Path.GetDirectoryName. The Path class is in the System.IO namespace.
Look at the static methods of the Path class. You could try Path.GetDirectoryName. The Path class is in the System.IO namespace.
I imperugo Nov 7, 2005 #3 use FileInfo FileInfo myFile = new FileInfo("the_path_of_file"); string name_of_file = myFile.Name; byez
use FileInfo FileInfo myFile = new FileInfo("the_path_of_file"); string name_of_file = myFile.Name; byez