I want to split a process filepath by "\", but C# don't accepting '\'.
string[] pathSplit = p.MainModule.FileName.Split(new Char[] { '\' });
foreach(string path in pathSplit)
{
}
I got this error: https://i.stack.imgur.com/Dsfxb.png
The string doesn't end. Where is my problem?