Popular recipes tagged "read" but not "amiga"http://code.activestate.com/recipes/tags/read-amiga/2010-04-18T17:18:50-07:00ActiveState Code RecipesFile read/write routines (Python)
2010-04-18T17:18:50-07:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/577199-file-readwrite-routines/
<p style="color: grey">
Python
recipe 577199
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/binary/">binary</a>, <a href="/recipes/tags/file/">file</a>, <a href="/recipes/tags/read/">read</a>, <a href="/recipes/tags/text/">text</a>, <a href="/recipes/tags/write/">write</a>).
Revision 2.
</p>
<p>For small dirty hacks in Perl has a module File::Slurp.
I wrote two simple functions when I moving from Perl to Python - one for reading files and second for writing files. Valuable data is list of lines or blob (additionally specified argument binmode=1).</p>