How to add line to in a file?
How to add line to in a file in a certain place?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
FroglegRank #1,020 · 1.9K reputationPosted May 25, 2011, 12:21 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted May 24, 2011, 11:22 PM EDT
Mike JonsonRank #7,584 · 238 reputationPosted May 24, 2011, 11:32 PM EDT
Sam HobbsRank #107 · 20.5K reputationPosted May 24, 2011, 11:47 PM EDT
Please, do you need to add a line or replace a line?
Mike JonsonRank #7,584 · 238 reputationPosted May 25, 2011, 12:38 AM EDT
VulpesRank #55 · 29.2K reputationPosted May 25, 2011, 12:57 AM EDT
But, if the file is not too big, the easiest way to replace a line is as follows:
Mike JonsonRank #7,584 · 238 reputationPosted May 25, 2011, 1:02 AM EDT
FroglegRank #1,020 · 1.9K reputationPosted May 25, 2011, 1:19 AM EDT