I program in WPF C#. I have e.g. the following path:
C:\\Program Files\\hello.txt
and I want to extract hello
hello
try
fileName = Path.GetFileName (path);
http://msdn.microsoft.com/de-de/library/system.io.path.getfilename.aspx