read file with delay if content is empty