Quote:
|
Originally Posted by ASHRAF
Hello
I have a text file in this form:
This file is a text file
Please help me in it
My name is ashraf
AR 12 34 56 45
FV 14 15 16 17
DC 33 43 22 11
I need to read the numbers only and ignore all the text
can someone help me to do that please.
thanks in advance.
ashraf
|
if there will only ever be letters in the first column, then read in the line, search the string by spaces, and don't save the first value.
not exact C/C++ code but close.
I doubt the code will work, but it should give you a good start on how to tackle the problem.
Best of luck, feel free to write back with problems if you have any.