Add a new entry using the entire remaining bytes of input for the entry content. input will be closed at the end.