C#C
C#3y ago
AdiZ

✅ Split Lines into Array Elements

I've got a list of common English words in the format
word1
word2
word3
word4

And so forth. How can I split this into an array of format `string[] arr = {"word1", "word2", "word3", "word4"}.
I imagine this would be done with .Split() but it's not working for me.
Was this page helpful?