use primitive boolean and append CRLF at the end of file