string fullPath = "C:\\Users\\JaneDoe\\Documents\\example.txt"; string fileName = FilePath.GetPath(fullPath).FileName; // returns "example.txt"
string fullPath = "C:\\Users\\JaneDoe\\Documents\\example.txt"; string directoryName = FilePath.GetPath(fullPath).DirectoryName; // returns "C:\\Users\\JaneDoe\\Documents"
string path1 = "C:\\Users\\JaneDoe\\Documents"; string path2 = "example.txt"; string combinedPath = FilePath.Combine(path1, path2); // returns "C:\\Users\\JaneDoe\\Documents\\example.txt"The Sharpen library is a NuGet package that provides various extensions and utilities for working with C#.