Lets say I have class definition like this (fairly simple):
class Person
{
public string Balance;
public string Escrow;
public string Acc;
// .. and more
}
and I need to parse this string into the class above:
BALANCE: 746.67 ESCROW PAYMENT: 271.22 LAST ACT:05/03/12
ACC: 10 YTD DIVIDENDS: .27 ENTRY DATE:12/20/10
The string comes in this weird format.
I am thinking to read each line one by one and parse its content but I like to learn a better way maybe. At least 2 brains are stronger than one brain.