Use writteln() instead of infoln().