[ale] Python - read in text minus "\n"

Jay Loden jloden at toughguy.net
Sat Jan 8 23:28:16 EST 2005


input = grep_tsk.readline()[:-1] #

does what I would have needed too, but I have to do it for each line in the 
file anyway, so I guess I'll stick with the method i found with splitlines()

-Jay

On Saturday 08 January 2005 4:57, Jeff Hubbs wrote:
> Will  input =  x.readline()[-1] work?
>
> Jeff



More information about the Ale mailing list