<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Recursive File Read, update' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Recursive File Read, update' posted on the 'Python' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2012 Programmers Heaven</copyright>
    <pubDate>Wed, 23 May 2012 23:49:15 -0700</pubDate>
    <lastBuildDate>Wed, 23 May 2012 23:49:15 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Recursive File Read, update</title>
      <link>http://www.programmersheaven.com/mb/python/411578/411578/recursive-file-read-update/</link>
      <description>hi,&lt;br /&gt;
&lt;br /&gt;
I am very new to python and thanks for your support.&lt;br /&gt;
&lt;br /&gt;
I am trying to write a program to read all the .DAT files in the given folder and its sub folders. &lt;br /&gt;
&lt;br /&gt;
Then in each of the .DAT file, I want to replace a perticular string - this string appears within first 10 lines in the file.&lt;br /&gt;
&lt;br /&gt;
For example: The files have below string on line 4 or 7.&lt;br /&gt;
&lt;span style="color: Blue;"&gt;Name : TESTNAME&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I want to update (append) the name with the filename. The output is like&lt;br /&gt;
&lt;span style="color: Blue;"&gt;Name : FILENAME_TESTNAME&lt;/span&gt;&lt;br /&gt;
(FILENAME is the name of the file without .DAT extension)&lt;br /&gt;
&lt;br /&gt;
any help... thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/python/411578/411578/recursive-file-read-update/</guid>
      <pubDate>Wed, 06 Jan 2010 04:36:24 -0700</pubDate>
      <category>Python</category>
    </item>
  </channel>
</rss>
