Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

carriage returns in fwrite

Status
Not open for further replies.

MysticFallout

Technical User
Sep 21, 2002
14
US
i am writing a simple "News" script for my site. it all works except when i use the return key when adding news. i only get the first line of the news. plus the date, which is after the news in the text file doesnt show up.

the txt file holds this news info, like this

TITLE|NEWS|DATE

if the NEWS had any carriage returns, i only the the first line from news and nothing for the date.

any ideas how i can fix this?
 
Troubleshoot:

1. Inspect the file written with an editor. Does your script write correctly?

2. If it writes correctly the mistake lies in the retrieval.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top