[Tutor] search through a list
Sandip Bhattacharya
sandip at lug-delhi.org
Sun Jul 3 11:18:39 CEST 2005
nephish wrote:
> LogList = open('home/nephish/Projects/Piv/logs/LogList.txt', 'r')
> LogsRead = LogList.readlines()
>
> #see if there is a new log file.
> for i in LogFiles:
> if LogFiles[i] not in LogList:
Don't you mean "if LogFiles[i] not in LogsRead" ?
- Sandip
--
Sandip Bhattacharya * Puroga Technologies * sandip at puroga.com
Work: http://www.puroga.com * Home/Blog: http://www.sandipb.net/blog
PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3
More information about the Tutor
mailing list