Use fputs to avoid extra newline.