Jump to content


Photo

Output to .txt files.


  • Please log in to reply
1 reply to this topic

#1 BrotherLogic

BrotherLogic
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 24 September 2006 - 12:37 AM

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



#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 24 September 2006 - 01:18 AM

http://ca.php.net/ma...nction.file.php ... if I understood the question
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users