Ever wondered how to get a filename sans extention? Of course you can use "split" function but why reinvent the wheel when you have Path class to do it for you?
All you have to do is call Path's GetFileNameWithoutExtension method, pass it the filename and it will return you its name without extension. The Path class is in System.IO namespace.
An example [C#]:
using System.IO;
string fileName = Path.GetFileNameWithoutExtension("filename.ext");
2e974d23-c767-4430-b2eb-aa2a12b6c3aa|0|.0
path, filename, extension