handle 0 length file.