what is c# file name code example Example: C# get filebase name string name = Path.GetFileName(file);