Hi Monks, any idea on how I can stop empty files from been pushed into an array. I am reading a file and subsetting different part of the file. Each of the subset is saved as a file and they are pushed into an array. Some of these files are empty and I don't want them in the array as they will give error message when I use the files in the array.