http://www.wellho.net/resources/Y110.html
EXAMPLES FROM OUR TRAINING MATERIAL coster.py Read whole file, report on lines matching a pattern costhuge.py Reading a file line by line dmoz.py Parsing a large file, looking for matching lines filechex File checks - is it a directory, when was it modified grabpage.py Read from a URL as is reading from a file lost.py Trapping a non-existant file error pstat.py Checking whether a file exists, and things about it ... tablog.py File overwrite and append in python n2 Find the title of a web site fff Jumping around an input file (random access) fgfg Improved version - program to handle data recently appended to a log file
Python/Files (last edited 2009-11-26 07:44:05 by DetlevLengsfeld)