C#C
C#3y ago
AdiZ

✅ .Split() Returning Spaces Between Words in String[]

Hi. I have an string array
string[] strArr
of words in format
[word1, word2]
and so on - just a basic format.. I got that by performing
.Split()
on another string, let's say
string x
.
x
was in format
"""
word1
word2
"""

and so on, for 30,000 lines. Now that I've converted this all to an array, how can I print the array such that the Console output would be ["word1", "word2"] etc.? I want to initialize strArr instead of performing
.Split()
everytime my app starts.
Was this page helpful?