I am using the PHP code:
$numberNewline = $number . \'\\n\'; fwrite($file, $numberNewline);
to write $number to a file.
For some reason
If inserting "\n" does not yield any results, you can also try "\r\n" which adds a "carriage-return" and "new line."