M
martin
Hi, I am trying to print to a file 3 columns of information, the first
row is the label field,
consisting of 3 strings, 9, 4, and 9 characters wide. The first column
is strings, the second and third are integrs, of 1 up to 14 digits
wide.
aaaaaaaaa bbbb ccccccccc
--------------- ------- ---------------
xxxxxxxx 1 43432
xxxxxxxx 3213213 435435435
so on
I tried with printf %s and %d (- and + options also) but since the
width of second and third columns varies widely, the result is not
appealing and it needs a lot of trial and error to get something
half-decent looking. And also there seems to be no center
justificiation option with
printf.
I am wondering is there a way to get a decent print display without
too much trial and error. and juggling of fields nad printf options.
Thanks. Martin
row is the label field,
consisting of 3 strings, 9, 4, and 9 characters wide. The first column
is strings, the second and third are integrs, of 1 up to 14 digits
wide.
aaaaaaaaa bbbb ccccccccc
--------------- ------- ---------------
xxxxxxxx 1 43432
xxxxxxxx 3213213 435435435
so on
I tried with printf %s and %d (- and + options also) but since the
width of second and third columns varies widely, the result is not
appealing and it needs a lot of trial and error to get something
half-decent looking. And also there seems to be no center
justificiation option with
printf.
I am wondering is there a way to get a decent print display without
too much trial and error. and juggling of fields nad printf options.
Thanks. Martin