supressing '\n' at the end

SunX xiaohua_sun at
Sat Nov 6 22:52:13 CET 2004

I need some help here.  How do you supress the newline char. at the
end of a file.write(str(aString))?  I know you can add a newline by
simply doing file.write(str(aString) + '\n'), but not
file.write(str(aString) - '\n').
Thanks alot

More information about the Python-list mailing list