I’m trying to store a very large string which I will ultimately convert to a character array to carry out operations on the individual characters.The string can be up to 1 million characters long. I’d used a normal string to carry out my work so far but it won’t work for such large strings.What inbuilt class can I use for this?
Share
I don’t know why you think you can’t have such large strings. Anyway, you probably want to store that data in a string before converting it to a character array because you want to modify it.
If all you want to do is append data to it, you could use a
StringBuilderfor efficiently building your string, then convert it to a character array.