quote:Originally posted by tantiger the fileName in the original code is not a string, so substring method not working directly on it.