Jump to content


This topic is now archived and is closed to further replies.


Output to .txt files.

Recommended Posts


I am currently outputting names to a .txt file.  The problem is that when I open up the text file the names are displayed like this: Jonny Miller<newline>Charlie Babbot<newline>ChewY Hansolo........

I need the names displayed like this:

Jonny Miller
Charlie Babbot
Chewy Nasalund

When I use the fgets() it picks up a bunch of names............................ how can I get this text file to save in a format which recognizes newline characters........??????

Share this post

Link to post
Share on other sites
http://ca.php.net/manual/en/function.file.php ... if I understood the question

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.