Getting the following error Error
'System.StringSplitOptions' does not contain a definition for 'RemoveEmptyEntires'
string[] lines = File.ReadAllLines(fileName);
char[] delim = new char[1];
delim[0] = ' ';
foreach (string line in lines)
{
if (line != string.Empty)
{
string[] words = line.Split(delim, StringSplitOptions.RemoveEmptyEntires);
// here you've got all your words in that array. Do what you want with them
foreach (string word in words)
{
MessageBox.Show(" zp! ");
}
}
}
}