[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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