Accepts empty file.