How to create Objects from reading the .Txt file
PolicynoCompany_NameChildPolicy
-
5197AIRCHANNEL LTDSHANKA15513A
5197AIRCHANNEL LTDSHANKA27760B
5197AIRCHANNEL LTDSHANKP17946A
5201GLENMORE ENGINEERING RICHP97946X
5201GLENMORE ENGINEERINGRICHP97946M
5201GLENMORE ENGINEERING RICHP97946D
I am getting the dat(flat) file , this file contains records to health policy.
Each policy contains sub policies called child policy.So need to read the dat file and create objects called Policy which contains sub class called child policies..
Policy
{
String policy_name;
int Polic_no;
ChildPolicy childpo;
// some getters and setters
}
ChildPolicy
{
//some getter and setters
}
Any help .....

