I want to read a text file consisting of single words on a line each e.g.
apple
pear
orange
banana
... and put the words into a string array.
So far I've come up with:
string[] sK;
StreamReader K = new StreamReader(sFile);
sK = K.ReadToEnd().Split('\n');
But, in the Autos window, I can see that each word has come out like this:
appleX
pearX
orangeX
bananaX
(where X is a box shaped character).
What is it and how could I remove it?
