See attached script,

Output must be:

Name   : A.Johnson
number : 163245771
birthday:15 sep 1944
sexe    : Male
adres  :345 Orson street
zipcode:RG 3425
city: Honeyfield

Packetname 1: Care
Insurancenumber 1:3767801
Startdate 1:01 jan 2011
Enddate 1:
Status 1:
NMAUN 1: 542

Packetname 2: ExtraCare
Insurancenumber 2:3767801
Startdate 2:01 jan 2011
Enddate 2:
Status 2:
NMAUN 2: 542

Packetname 3: SpecialCare
Insurancenumber 3:3767801
Startdate 3:01 jan 2011
Enddate 3:
Status 3:
NMAUN 3: 542

Attachments:
http://www.ruby-forum.com/attachment/7735/RubyScript


-- 
Posted via http://www.ruby-forum.com/.