Jump to content


fopen in MS-DOS format??

  • Please log in to reply
1 reply to this topic

#1 BrotherLogic

  • Members
  • PipPip
  • Member
  • 22 posts

Posted 17 August 2006 - 10:39 PM

I am running a programs that creates a bunch of different .txt files.... after every entry in the .txt file I am trying to make a newline... (when I open the .txt file in Notepad the names are all joined together) Wordpad is fine.


Jon Smith"\r"Joe Murphy"\r"Jerry Garage"\r"

(where the "\r" is that vertical triangle character representing newline)

I want the output to the fopen file to be:

Jon Smith
Joe Murphy
Jerry Garage

What is the directive to do this?
Thanks Guys I appreciate it.

#2 trq

  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 17 August 2006 - 10:43 PM

Newlines are \r\n in windblows.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users