Avoid getline() and ssize_t.