Jump to content

Output to .txt files.


BrotherLogic

Recommended Posts

PROBLEM:

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........??????

Link to comment
https://forums.phpfreaks.com/topic/21822-output-to-txt-files/
Share on other sites

Archived

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

×
×
  • Create New...

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.