<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>DaniWeb IT Discussion Community</title>
		<link>http://www.daniweb.com/forums/</link>
		<description>Tech support, programming, web development, and internet marketing community. Forums to get free computer help and support.</description>
		<language>en-US</language>
		<lastBuildDate>Fri, 04 Dec 2009 23:50:39 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.daniweb.com/alphaimages/misc/rss.jpg</url>
			<title>DaniWeb IT Discussion Community</title>
			<link>http://www.daniweb.com/forums/</link>
		</image>
		<item>
			<title>Read large input file to memory</title>
			<link>http://www.daniweb.com/forums/thread229086.html</link>
			<pubDate>Sat, 10 Oct 2009 10:19:50 GMT</pubDate>
			<description><![CDATA[I wrote a python program that gets input from an input file. It works fine for small input files since after opening the file I did this to get the data 
 
data=fPtr.readlines() 
Since readlines only takes the input data and packs it into a list, it is clear it won't work for large input files. The...]]></description>
			<content:encoded><![CDATA[<div>I wrote a python program that gets input from an input file. It works fine for small input files since after opening the file I did this to get the data<br />
 <pre style="margin:20px; line-height:13px">data=fPtr.readlines()</pre>Since readlines only takes the input data and packs it into a list, it is clear it won't work for large input files. The problem is that I need to extract all the data in the input file before I begin any operation.<br />
I will be doing lots of looping in the program and I don't know whether opening and closing the file in a single loop would be efficient.<br />
Please advise on the best option.<br />
<br />
Happy times</div> ]]></content:encoded>
			<category domain="http://www.daniweb.com/forums/forum114.html">Python</category>
			<dc:creator>sureronald</dc:creator>
			<guid isPermaLink="true">http://www.daniweb.com/forums/thread229086.html</guid>
		</item>
	</channel>
</rss>
