[Solved] Deleted words from a string
Use String.Replace(): string x = @”documents\bin\debug”; string desiredString = x.Replace(@”\bin\debug”, String.Empty); Note: The key thing here is that you have to assign the string returned by the Replace() function to a variable. (From your comment on the question, it is the problem). This can either be another variable (as in the above example) or the … Read more