Check If Open File Is Empty In Python