<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5071019376193144539</id><updated>2011-04-21T20:36:40.045-07:00</updated><title type='text'>test</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dmousetest.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dmousetest.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>DMouse</name><uri>http://www.blogger.com/profile/15256031529315316702</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5071019376193144539.post-7585542272774072316</id><published>2009-02-22T00:50:00.001-08:00</published><updated>2009-02-22T00:50:39.828-08:00</updated><title type='text'>otra mas</title><content type='html'>Introduction&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;The game you played yesterday uses files to store game saves. The order you placed yesterday was saved in a file. That report you typed up this morning was, obviously, stored in a file as well.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;File management is an important part of many applications written in nearly every language. Python is no exception to this. In this article, we will explore the task of manipulating files using several modules. We'll read, write to, append and do other strange things to files. Let's get started.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Reading and Writing&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;The most basic tasks involved in file manipulation are reading data from files and writing data to files. This is a very simple task to learn. Let's open a file for writing: &lt;br /&gt;&lt;br /&gt;    fileHandle = open ( 'test.txt', 'w' ) &lt;br /&gt;&lt;br /&gt;The "w" indicates that we will be writing to the file, and the rest is pretty simple to understand. The next step is to write data to the file: &lt;br /&gt;&lt;br /&gt;    fileHandle.write ( 'This is a test.\nReally, it is.' ) &lt;br /&gt;&lt;br /&gt;This will write the string "This is a test." to the file's first line and "Really, it is." to the file's second line. Finally, we need to clean up after ourselves and close the file: &lt;br /&gt;&lt;br /&gt;    fileHandle.close()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5071019376193144539-7585542272774072316?l=dmousetest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dmousetest.blogspot.com/feeds/7585542272774072316/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5071019376193144539&amp;postID=7585542272774072316' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default/7585542272774072316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default/7585542272774072316'/><link rel='alternate' type='text/html' href='http://dmousetest.blogspot.com/2009/02/otra-mas.html' title='otra mas'/><author><name>DMouse</name><uri>http://www.blogger.com/profile/15256031529315316702</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5071019376193144539.post-4126218523340463659</id><published>2009-02-21T22:27:00.000-08:00</published><updated>2009-02-21T22:28:21.520-08:00</updated><title type='text'>Python Rules!</title><content type='html'>Python Rules!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5071019376193144539-4126218523340463659?l=dmousetest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dmousetest.blogspot.com/feeds/4126218523340463659/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5071019376193144539&amp;postID=4126218523340463659' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default/4126218523340463659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default/4126218523340463659'/><link rel='alternate' type='text/html' href='http://dmousetest.blogspot.com/2009/02/python-rules.html' title='Python Rules!'/><author><name>DMouse</name><uri>http://www.blogger.com/profile/15256031529315316702</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5071019376193144539.post-7756550568482598333</id><published>2007-12-21T19:24:00.000-08:00</published><updated>2009-02-22T00:50:19.344-08:00</updated><title type='text'>xD</title><content type='html'>akahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkas&lt;br /&gt;jdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashd&lt;br /&gt;kadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdka&lt;br /&gt;shdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasj&lt;br /&gt;dakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjdakahsdkashdkjashdkadshkasjd&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5071019376193144539-7756550568482598333?l=dmousetest.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dmousetest.blogspot.com/feeds/7756550568482598333/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5071019376193144539&amp;postID=7756550568482598333' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default/7756550568482598333'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5071019376193144539/posts/default/7756550568482598333'/><link rel='alternate' type='text/html' href='http://dmousetest.blogspot.com/2007/12/akahsdkashdkjashdkadshkasjdakahsdkashdk.html' title='xD'/><author><name>DMouse</name><uri>http://www.blogger.com/profile/15256031529315316702</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
