Here is the source code of the program... I'm not sure what else to mention... uhm.. here is the program's output ... every time:
File not found! ... so it can't open the files.
yes... tested both with and without the files. Same thing
Later edit: Fixed.... imi was right... Tiny mistake there... the filenames where actually 1 (1).txt thanks