Ok, with your help, I made it work, only not as it should.
It does show file names, but it doesn't increment the file number with 1 ( Member1.txt -> Member2.txt , etc. )
I might be doing something wrong with the if statement, but I cant really c what.
(( I only put in the 2nd case, otherwise it might be a bit long ))Code:Removed, no longer neccesary.
Also, why should I want to clear stdin?
Thanks for all your help so far