You might use GetFileSize() instead, and delete the file if it is very small.