I need to parse third party text file in the following format
WE BUY : 10 000.00 USD
VALUE : 281210
RATE : 30.2600
So the general pattern is
TAG,some separator,:,someseparator,VALUE
Let;s say i started with File.ReadAllLines so I am dealing with individual lines.
What is the best way to parse values?
UPDATE
I don’t have any documentation for the format but let’s say that it is position-based.
1) “:” is always 9th charcter in the string,
2) VALUE is 11th character.
3) Unused spaces are filled with space character.
Let’s talk about that format.
UPDATE 2
I am thinking about if RegEx is better here? For instance let’s say I have a subtask
find
RATE : 30.2600
in the whole text and extract 30.2600 given that is starts with 11th character
For Each line: