Program help
Jeff Schwab
jeffrey.schwab at rcn.com
Sun Oct 2 16:24:56 EDT 2005
FX wrote:
> can anybody write a code for a program that reads from a
> /location/file & according to file contents, it execute script. e.g. if
> file contains "mp" it runs media player.
> I hope the code is small .. plz help me out!
You might be interested in the FileInfo class, defined and thoroughly
explained in _Dive Into Python_.
http://diveintopython.org/object_oriented_framework/index.html
More information about the Python-list
mailing list