If you have a requirement to check Empty File before applying certain operations then it can be done using ICETOOL…