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