Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7771411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:38:44+00:00 2026-06-01T16:38:44+00:00

Simple question. I am appending entries into a text file, and I want to

  • 0

Simple question. I am appending entries into a text file, and I want to have each new entry on the next line. As it stands here, the subsequent entries are printed after the last. What do I enter to write each entry on a new line? Using Windows.

$fh = fopen($dir . '/' . "Cause.txt", 'a') or die("can't open file");
fwrite($fh, $affiliation . "\n");
fclose($fh);

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:38:46+00:00Added an answer on June 1, 2026 at 4:38 pm

    They already are. Use a text editor better than Notepad to view the file, or print out "\r\n" instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an question about Expression Blend 4. I want to create a simple
Simple question, I would like to append text to the front of every print
Simple question, could'nt find a straight answer. How can I modify the output file
Simple question I hope.... I have a Win Form with a Tab Control and
I have a question regarding some simple console I'm making. I know that it's
I have a very simple question (I searched on google but found nothing). How
I have a language-agnostic question about an algorithm. This comes from a (probably simple)
Hey everbody, i'm having problem with a simple question. I have a NavigationController, 01.xib
Simple question, (Easy points!) In Delphi 2010 (with updates 4 and 5) Find in
Simple question: Is there a class or interface that encapulates the getting of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.