Why, when I use fwrite(), does it automatically append a new line to the end of my string?
Here's my code:
if ((strlen($fc) + strlen($safe_mesg)) > TOTAL_MAXCHR)
$fc = $safe_mesg;
else
$fc = sprintf("%s %s", $fc, $safe_mesg);
print "DEBUG: fc is $fc";
fwrite($fp, $fc);
fclose($fp);
The debug output confirms that $fc has no NL.
However, when I open the output file, there's a new line after the string.