<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XPath</title>
	<atom:link href="http://www.xpath.nl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xpath.nl</link>
	<description>It&#039;s all about data.</description>
	<lastBuildDate>Wed, 25 Apr 2012 14:26:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Read file contents</title>
		<link>http://www.xpath.nl/2011/11/read-file-contents/</link>
		<comments>http://www.xpath.nl/2011/11/read-file-contents/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 08:38:46 +0000</pubDate>
		<dc:creator>Writer</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://www.xpath.nl/?p=296</guid>
		<description><![CDATA[import sys, os f = open(&#8216;/path/to/file.xml&#8217;, &#8216;r&#8217;) contents = f.read() first_line = f.readline() second_line = f.readline() list_of_all_lines = f.readlines() f.close() &#160; http://docs.python.org/tutorial/inputoutput.html &#160;]]></description>
			<content:encoded><![CDATA[<p>import sys, os</p>
<p>f = open(&#8216;/path/to/file.xml&#8217;, &#8216;r&#8217;)</p>
<p>contents = f.read()</p>
<p>first_line = f.readline()<br />
second_line = f.readline()</p>
<p>list_of_all_lines = f.readlines()</p>
<p>f.close()</p>
<p>&nbsp;</p>
<p><a href="http://docs.python.org/tutorial/inputoutput.html">http://docs.python.org/tutorial/inputoutput.html</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpath.nl/2011/11/read-file-contents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

