[Tutor] Printing to file on one line
Peter Brown
peterabrown at froggy.com.au
Mon Sep 22 08:46:01 EDT 2003
Hi,
This is a portion of my program:
#print header for debits in debits file
aba.write('0' + (' ' * 17) + string.zfill(d_batch, 2) + 'MET' + (' ' *
7) + conf_name.ljust(26) + conf_apca[:6] + conf_desc.ljust(12) +
str(smdate) + '\r\n')
a = '1' + a8f + a9f + ' ' + a3 + a4f + a5f + a6f + a1f + a2f + a10 +
'00000000\r\n'
aba.write(a)
The first write goes over two lines - I want it all on one line:
0 32MET PB Exports 233381Payments
220903^M
The second works as expected.
How do I get the first aba.write to be all on one line?
Peter
More information about the Tutor
mailing list