Program help

Jeff Schwab jeffrey.schwab at
Sun Oct 2 22:24:56 CEST 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_.

More information about the Python-list mailing list