How can I read from a text file, numbers that only consists of one or two characters.
For example:
123 32 40 14124 491 1
I need to get : 32 40 1
What I did atm:
OpenFileDialog ls = new OpenFileDialog();
int numbersFromFile;
if (ls.ShowDialog() == DialogResult.OK)
{
StreamReader read = new StreamReader(ls.FileName);
}
I’m not sure what to do, I think I need to read all the characters in a string and then to use the substring funcion?
You can use something like: