Originally posted as a Categorized Question.
In reply to How do I test whether a file has some contents or not? by Hen_true