C# substrings: Removing first three characters
c#, string, substring
Solution
You can use `String.Substring(Int32)` method.
Retrieves a substring from this instance. The substring starts at a specified character position and continues to the end of the string.
string textIWant = temp.Substring(3);
Here is a `demonstration`.
As an alternative, you can use `String.Remove method(Int32, Int32)` method also.
Returns a new string in which a specified number of characters in the current instance beginning at a specified position have been deleted.
string textIWant = temp.Remove(0, 3);
Here is a `demonstration`.
Problem
I have a string which I would like to remove the first three characters from. How do I go about this using substrings, or is there any other way? ``` string temp = "01_Barnsley" string textIWant = "Barnsley" ``` Thank you