Hey everyone, i was wondering how i could skip over empty files in a directory. For example if i have a loop that is just reading in all the .txt files in a directory, and i want the empty ones to be left alone, and alterations done on the non empty files.

So basically what im looking for is a built in function that will check to see if a file is empty. Simple question, i just can't seem to find the right function.


thanks alot.