I am writing a series of entries, each one about 60 characters long, into a .txt file in a folder on the web site.
$myfile = fopen("Foldername/Sheetname.txt", "a") or die ("Unable to open file!");
fwrite($myfile, $final_string);
fclose($myfile);
When I come to look at the sheet, say using FTP, all the entries follow each other on one line and therefore rather difficult to look at and handle.
I'd like to have each entry on a new line but I'm not sure how to arrange this. Initial fiddlings failed. How to do this, please ?