Or fix the file in Notepad - backspace out the last, blank, line. Then the program should work from then on. The problem is that, when the program DOES get past the Join line, and saves the sorted file, it outputs that last blank line. From then on, you can't get past the Input function.