I think DataMiser got it right in an early post. There may not have been anything necessarily wrong with your code, except that the file may not yet have been deleted when the program attempted to...