in reply to Re^2: File Indexing program
in thread File Indexing program

No, allow me to repeat: $i as global was the main problem in your program, it prevented the program to work.

But it is not the only problem: all the other things I mentioned are time bombs waiting for the first time you change something in the code to explode.

Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."