and do this: ONLY IF the first character of the row is "9" i take and extract the number write in bold, in this example 3,500000. Now i have to write all in a new file.
Another curiosity is how i insert, each time that i read a row that have the number in bold that have three zero at the end XX,XXX000, a new line before this row.
My partial code is this, can you help me!
Thank's..
That could be tricky, because the fstream objects don't differentiate between bold vs not bold (as far as I know, they read unformatted ASCII characters).
If you have some other way of indicating a number you want to extract, then try using getline(ifstream, /*std::string*/); to store an entire line in a string, and if the first character is a 9, do something, else clear the string and repeat.
No, the bold is only to underline what characters i have to analyse. In the input file there's not bold character.. Can you give an example of code to do what you say?
Thank's