[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Python - read in text minus "\n"
- Subject: [ale] Python - read in text minus "\n"
- From: jloden at toughguy.net (Jay Loden)
- Date: Sat Jan 8 23:28:16 2005
- In-reply-to: <1105221472.4540.33.camel@juanita>
- References: <[email protected]> <[email protected]> <1105221472.4540.33.camel@juanita>
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