<pre lang="cs">private string filepath(string FilePath) { char[] splitpath=FilePath.ToCharArray();; for(int i=0;i<splitpath.Length;i++) { char s=splitpath[i]; if (c == '\')//error at this line { string path= s.Replace('\' , '\\');//error at this line also } } return path; }
private string FormattedFilepath(string FilePath) { string path= FilePath.Replace('\' , '\\'); return path; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)