in reply to Aligning Text
There's a few different ways of achieving this, but I'd use printf.
printf( "%-10s", "hello" );
will print "hello", left justified in a field 10 chars wide.
printf( "%10d", 777);
will print 777, right justified in a field also 10 chars wide.
|
|---|