Link to home
Start Free TrialLog in
Avatar of xrelux
xrelux

asked on

read some values from a text file

I have a text file that looks like that:
begin of the file:
    aaaaa aaaaaaa  aaaaaaaaaaaaaaa                                          

         asadasd as das d  asd as d asda sd as d sd as da sd a sd asd  sadasas d      2004
               asasaEORGE                              
                                                                                    asasassa1
    ÚÄÄÂÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄ    ³Unu³ Doi ³ Trei                         ³    patru ³ cinci ³sase³
ÄÅÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄ         ³ 1³7301270    ³ COLIBRI SRL                    ³     2270365³   8-10-2004  ³    158135.00³
    ³ 1³7301275    ³ GILDOR SRL                     ³    12319118³   8-10-2004  ³   1143280.00³
    ³ 1³7301276    ³ VIRA COM SRL                   ³     1856400³   8-10-2004  ³    251000.00³
    ³ 1³7301277    ³ ASHQUAR SRL                    ³    11524198³   8-10-2004  ³    846160.00³
    ³ 1³7301278    ³ GILDOR SRL                     ³    11091990³   8-10-2004  ³   1027926.00³
    ³ 1³7301280    ³ GOIU AF                        ³     2427600³   8-10-2004  ³    180000.00³
 ÃÄÄÁÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄ
    ³ TOTAL                                             868541023                  78829985.40³
    ³ TOTAL NR.FACTURI:   173                                                                 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
end of the file

For every line i want to read every value between ³, for example  the values "1", "7301270", "colibri srl", "2270365", "8-10-2004", "158135.00" and then, put them in variables(first value-int, second-int, third-*char or char[]. and so on). How can a do that?THNX!
PS: How can i write the values to another txt file?
ASKER CERTIFIED SOLUTION
Avatar of grg99
grg99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
> aaaaa aaaaaaa  aaaaaaaaaaaaaaa

That reminds me of a girl I once knew...
Avatar of grg99
grg99

> ÄÄÄÄ ÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

Reminds me of a Swedish girl I once knew  ... :)

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Split grg99 and itsmeandnobodyelse.