Your language might be defined in "pseudo" EBNF like
File = { Skip } { Record } .
Record = Field<ID> Field<Name> Field<Sal> Field<Experience> .
Field<Key> = { WS } Key { WS } "=" { WS } Text { Skip } .
Skip = { WS } [HASH { ANY-CHAR-EXCEPT-NL } ] NL .
Text = ANY-CHAR-EXCEPT-HASH-WS { ANY-CHAR-EXCEPT-HASH-WS } .
Follow the steps as decribed by Bruno Sprecher in Solution #2.
You might use the C-functions
Cheers
Andi