G
Guest
Is there a way to parse a text file?
I have a extructured text file from a dump system and I want to be able to
look up, line by line for some specific strings like 'Username' and 'number',
like:
###### Identification ######
Line 1, doesn't matter what exist here
Line 2, doesn't matter what exist here
Username: u_myuser1
Line 4,doesn't matter what exist here
Number: 1234
Line 6,doesn't matter what exist here
Line 7,doesn't matter what exist here
Username: u_myuser2
Line 8,doesn't matter what exist here
Number: 1890
### end ###
.... and extract the user and the number for each user.
Any ideias?
thanks
I have a extructured text file from a dump system and I want to be able to
look up, line by line for some specific strings like 'Username' and 'number',
like:
###### Identification ######
Line 1, doesn't matter what exist here
Line 2, doesn't matter what exist here
Username: u_myuser1
Line 4,doesn't matter what exist here
Number: 1234
Line 6,doesn't matter what exist here
Line 7,doesn't matter what exist here
Username: u_myuser2
Line 8,doesn't matter what exist here
Number: 1890
### end ###
.... and extract the user and the number for each user.
Any ideias?
thanks