hi, i have a string and i want to add a letter inside it. for example if i have the word Hello and i would want to add B after the H, it would be Hbello.
as for now i coded the input of the words i wanted to take and also setted a counter to count how many letters are inside the word because i thought it could maybe help. can anyone help me?
edit: thank you person who told me to use .insert
You want to use Insert
thank you!
If you’re gonna be doing such insertions and replacements in any meaningful quantity, use StringBuilder
What have you tried yourself? The answer is easier than making a reddit post, if you take the time to investigate the functionality of your string variables.
i assumed its supposed to be easy, but i am a newbie and i all i found on the internet are already very advanced codes. someone in this reddit post has already showed me that i should use .insert and that was all i needed đŸ˜…
C# devs
null reference exceptions