Hi Guys,
I'm running into a bizzare problem. I have a program where I read a text file into a temparray which has been declared as an ArrayList()
Once the text file has been read in I can see that temparray is of size 4 elements which is expected.
I then try to concatenate the 4 elements into one string array and this is where I am running into issues. For some reason only the first two elements get concatenated and elements 3 and 4 do not get tacked on. The elements/strings are not too large, maybe 100 to 200 characters each.
Could there be a hidden character in the text file that is throwing the concatenation off?
I have also tried to individually assign the 4 elements of the temparray to 4 temp strings a,b,c and d and they all show up correctly in the quickwatch section. However concatenating them like tempstring=a & b & c & d also only concatenates a & b only.
Please help, I'm about to tear my hair out.
I'm running into a bizzare problem. I have a program where I read a text file into a temparray which has been declared as an ArrayList()
Once the text file has been read in I can see that temparray is of size 4 elements which is expected.
I then try to concatenate the 4 elements into one string array and this is where I am running into issues. For some reason only the first two elements get concatenated and elements 3 and 4 do not get tacked on. The elements/strings are not too large, maybe 100 to 200 characters each.
Could there be a hidden character in the text file that is throwing the concatenation off?
I have also tried to individually assign the 4 elements of the temparray to 4 temp strings a,b,c and d and they all show up correctly in the quickwatch section. However concatenating them like tempstring=a & b & c & d also only concatenates a & b only.
Please help, I'm about to tear my hair out.