Rob Wolfe <[EMAIL PROTECTED]> writes:
> fscked <[EMAIL PROTECTED]> writes:
>
>> I cannot seem to get this to work. I am hyst trying to read in a list
>> of paths and see if the directory or any sub has a filename pattern.
>> Here is the code:
>>
>> import os, sys
>> from path import path
>>
>> myfile = open("boxids.txt", "r")
>> for line in myfile.readlines():
And you don't need to use ``readlines`` at all.
This is enough:
for line in myfile:
--
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list