I am using the PHP code:
$numberNewline = $number . \'\\n\'; fwrite($file, $numberNewline);
to write $number to a file.
For some reason
$numberNewline = $number . '\r\n'; fwrite($file, $numberNewline);
$numberNewline = $number . '\r\n';
fwrite($file, $numberNewline);
Try This