linecache and glob
jo3c
JO3chiang at gmail.com
Thu Jan 3 22:02:36 EST 2008
hi everyone happy new year!
im a newbie to python
i have a question
by using linecache and glob
how do i read a specific line from a file in a batch and then insert
it into database?
because it doesn't work! i can't use glob wildcard with linecache
>>> import linecache
>>> linecache.getline(glob.glob('/etc/*', 4)
doens't work
is there any better methods??? thank you very much in advance
jo3c
More information about the Python-list
mailing list