1

Please can someone tell me why when I write to a .txt file it all goes on one line. I know this is a newbie question but I am new and this code has came directly out of the book im learning from the idea is that a customer order comes in and each order written to a new line in the orders.txt file. The orders are coming through fine just not on a new line. The string code is as follows.

$outputstring = $date."\t".$tireqty." tires \t".$oilqty." oil\t"
                .$sparkqty." spark plugs\t\$".$totalamount
                ."\t". $address."\n";
Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
smokingjak
  • 11
  • 1

0 Answers0