supressing '\n' at the end

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


Gurus;
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
Howard



More information about the Python-list mailing list