Sorry it has taken awhile to get back to you. I get a run time error 54 - bad file mode error and when I debug it highlights on the num=fil.readline line. Any ideas?