> currentSymbol=filename[int(filenameStart),int(extensionStart)] Should be currentSymbol=filename[int(filenameStart):int(extensionStart)] (change , to :)
You don't need to convert to int all the time, rfind will return an integer. Also you can use os.path for this from os.path import basename, splitext currentSymbol = splitext(basename(filename))[0] HTH, -- Miki <[EMAIL PROTECTED]> http://pythonwise.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list