I've a small piece of code which writes a few lines of text to file:

$content .= "Order id: ".$this->order['orders_id']."\n";
$content .= "Total price: ".$this->order['value']."\n";
$content .= "Date Purchased: ".$this->order['date_purchased']."\n";

Then $content is written to file using fwrite().

This works fine, but when I open the file in notepad the text is not displayed line by line, but as a single continuous string. How can I make it appear line by line in notepad?

This is necessary because a colleague of mine are using Visual Basic to read the file. And he tells me VB can only read files line by line, so his script won't work when there's only one line.