Am saying we need not take record count, i was explaining check whether there are any contents in fileI need the record count in a file. Yes it creates a empty file when there is no record.
Like head command in unix, guess more +1 <file> will give first few lines of file. So in the trigger expression we can check the output of the command executed. If there are content trigger success link.