Jump to content

Write to 2nd Line of File - Probably Very Easy


yortzec

Recommended Posts

I feel really stupid. I want to write to a file starting at the beginning of the second line of a file, and completely ignore the first line, no matter how many characters the first line has. I'm sure this isn't all too difficult in PHP. I also want to end the 2nd line with a line break. What's the best way to do all of this?

 

P.S. I keep hearing different things about what the best way to write a line break is. Do you guys have opinions?

 

Thanks so much!

Link to comment
Share on other sites

Yes. I'm planning for there to be one "entry" from a user per line, for organizational purposes only. I guess I could leave it all on the 2nd line, but I may end up with over a hundred "entries." That would be frankly annoying when trying to edit one entry in the middle.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.