Parsing config file

Hi All,

I have a requirement to parse a file.

Let me clear you all on the req.

I have a job which contains multiple tasks and each task will have multiple attributes that will be in the below format. Each task will have some sequence number according to that sequence number tasks shld execute.

Code:
S.No. SeqNo# TaskID |Task Name | Attribute Name| Attribute Value1 1 1 | Java | classpath | sample.jar2 1 1 | Java | Runtime | -Xms -5123 2 2 | StoredPro | DB | sample.ini4 2 2 | StoredPro | ProcName | get_emp()
Like in the above format the infomation is written into the file.

The above job has 2 tasks (java, storedPro) with multiple attributes to each job. For example Java:- classpath, Runtime

I want to parse the file and and pick up the task and its attributes and execute as per the sequence number like java has to execute first with all attributes and stored proc fallows.

Please advice how can i achieve this.

Appriciate if any links or sample code.