my questions/suggestions have nothing to do with either C++ nor Windows programming, it's more general.
Questions: is the word 'Length' at the start/beginning of a record/line? If no, is it surrounded by blanks or at least by "white space"? The number following 'Length' is it on the same line or could it be in next record too? Is the number surrounded by blanks or at least by *white space"? Does the number contain a decimal point and/or thousands separators (if applicable)? If yes, what character is used for the decimal point (a point or a comma), what character is used as thousands separator (point, comma, blank, inverted comma, younameit)?
Proposal: If 'Length' occurs only
at the beginning of records, get those records. The number is word 2 of this record (unless blanks are used as thousands separator). Otherwise, if 'Length' is not at the beginning of records, and 'Length' and the following number are both
enclosed by blanks (and thousands separator is not
blank), then dice up your file and make words to single recrods. Then the number is the next non-blank
record (there could be several blanks separating 'Length' and number) after the one containing 'Length'.
|is this possible with c++ ?|
I suppose yes. But it could be possible, you may have to reinvent the wheel that in other systems turns well and since long.