Good morning,
I'm trying to get a specific part of a string in Visual Studio, in case the string in question is a directory path: "C: \ Users \ User \ File-2018.txt" I would like to try to get only what comes after the last "\", I tried to do
string[] texto = caminho.Split("\");
string resultado = texto[3];
But the error code, saying that can not convert character to string, could anyone help me in this situation please? Thank you very much in advance. obs: the variable "path" is of type string