How do i read line from an input file, without the /n
Aggelos Orfanakos
aggelos.orfanakos at gmail.com
Tue Dec 13 07:51:41 EST 2005
f.readline().rstrip('\n') should do it. If you are sure that lines
always end in '\n', then you could even use f.readline()[:-1]
More information about the Python-list
mailing list