I’m saving something from winform to a file, with SaveFileDialog (svf), and I would like to use the name of the file, after saving, how can I do it?
sfd.FileName;
It’s not the right way, because it has got the path too… (for example:c:/asd/asd/asd.doc)
You would use
Path.GetFileName()to get just the filename.