How to read values from file. tokenizer
Posted
by user69514
on Stack Overflow
See other posts from Stack Overflow
or by user69514
Published on 2010-04-09T02:56:16Z
Indexed on
2010/04/09
3:03 UTC
Read the original article
Hit count: 427
I have a file in which each line contains two numbers. The problem is that the two number are separated by a space, but the space can be any number of blank spaces. either one, two, or more. I want to read the line and store each of the numbers in a variable, but I'm not sure how to tokenize it.
i.e
1 5
3 2
5 6
3 4
83 54
23 23
32 88
8 203
© Stack Overflow or respective owner