This is the line:
string t = Path.GetDirectoryName(file1);
The result is:
C:\\Users\\bout0_000\\AppData\\Local\\Extracting_Frames\\Extracting_Frames\\dat file\\converted.avi\\histogramValues.dat
I want it to only contain: converted.avi
.
PS: converted.avi
is not a file name it's a path name. I want to get the last part of the path the last subdirectory without the file name.