string[] string1;
string string2;
string1 = string2;
This always gives me an error saying that I can’t convert string into string[]. How would I be able to “append” string2 into string1? I have to add more than one string into it so if there is any way to be able to add more than one string into string1 I would very much appreciate the help!
You are trying to assign a single string into a whole array of
string.This is not possible.
You need to either select which element of the array to use.
Better yet, use a
List<string>instead of an array – it is a better structure as it is not constrained by its initial size.