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 -- http://mail.python.org/mailman/listinfo/python-list