Check file size before read.