I have a database e.g.
NAME CNUM ADDRESS
John Doe 11212 New York, NY 10022
Mark Deer 22222 Orlando, Fl 33333
I want to output this to a fixed width Text file
with this parameter:
Field Length Position
Name 20 1
Cnum 5 21
Address 30 26
so for the above the output will look like this, (n.b. its the padding and calculating the number of pads that beats me on this one)
12345678901234567890123456789012345678901234
John Doe 11212New York, NY 10022
Mark Deer 22222Orlando, Fl 33333
(top row is for guidance only)
NAME CNUM ADDRESS
John Doe 11212 New York, NY 10022
Mark Deer 22222 Orlando, Fl 33333
I want to output this to a fixed width Text file
with this parameter:
Field Length Position
Name 20 1
Cnum 5 21
Address 30 26
so for the above the output will look like this, (n.b. its the padding and calculating the number of pads that beats me on this one)
12345678901234567890123456789012345678901234
John Doe 11212New York, NY 10022
Mark Deer 22222Orlando, Fl 33333
(top row is for guidance only)