<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1012352" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1012352</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-specific-line#comment-1071281</link>
    <description> &lt;p&gt;oh *smacks himself* forgot to mention that &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;and the fact that you need to re-write the array to the file your opening.&lt;/p&gt;
 </description>
     <pubDate>Mon, 18 Sep 2000 23:23:21 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1071281 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-specific-line#comment-1071245</link>
    <description> &lt;p&gt;that&#039;s because arrays start with 0&lt;br /&gt;
so the first line would be $contents[0]&lt;/p&gt;
 </description>
     <pubDate>Sun, 17 Sep 2000 23:18:19 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1071245 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-specific-line#comment-1071244</link>
    <description> &lt;p&gt;Your code changed the line after the one I wanted it to, so I had to add $line--; and then it worked. Thanks!!&lt;/p&gt;
&lt;p&gt;--Edge&lt;/p&gt;
 </description>
     <pubDate>Sun, 17 Sep 2000 22:55:55 +0000</pubDate>
 <dc:creator>Edge</dc:creator>
 <guid isPermaLink="false">comment 1071244 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/editing-specific-line#comment-1071206</link>
    <description> &lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;$file = &amp;quot;something.txt&amp;quot;;&lt;br /&gt;$line = 4;&lt;br /&gt;&lt;br /&gt;open(file,$file);&lt;br /&gt;@contents = &amp;lt;file&amp;gt;;&lt;br /&gt;close(file);&lt;br /&gt;&lt;br /&gt;$contents[$line] = &amp;quot;something new\n&amp;quot;;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;this will change line 4 of something.txt to the string &quot;something new&quot; and a line break at the end.&lt;/p&gt;
 </description>
     <pubDate>Sat, 16 Sep 2000 20:58:03 +0000</pubDate>
 <dc:creator>Orpheus</dc:creator>
 <guid isPermaLink="false">comment 1071206 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
