From cefd2703e576e6fe39f1d1b64ff0a545df75ad38 Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Thu, 16 Jul 2009 12:39:46 -0400 Subject: [PATCH] id fiddling --- files.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/files.html b/files.html index dbfc5ab..9c945bb 100644 --- a/files.html +++ b/files.html @@ -22,7 +22,7 @@ body{counter-reset:h1 12}

Diving In

FIXME -

Reading From Text Files

+

Reading From Text Files

FIXME @@ -124,7 +124,7 @@ ValueError: I/O operation on closed file

FIXME "with open(...) as file" pattern -

Reading Data One Line At A Time

+

Reading Data One Line At A Time

FIXME @@ -134,7 +134,7 @@ ValueError: I/O operation on closed file A “line” of a text file is just what you think it is — a sequence of characters delimited by a carriage return. Of course, it can’t really be that simple, can it? Text files can use several different characters to mark the end of a line. Some use a carriage return character, others use a line feed character, and some use both characters at the end of every line. Python handles all of these cases automatically, so you can say, “Hey, I want to read this text file one line at a time” and it will Just Work. --> -

Writing to Text Files

+

Writing to Text Files

FIXME @@ -172,7 +172,7 @@ test succeededline 2

FIXME -

Write A Little, Write A Lot

+

Write A Little, Write A Lot

FIXME write(), writelines(), .writeable @@ -363,7 +363,7 @@ special redirecting itself, just doing normal print statements or w one program’s output to the next program’s input. --> -

Further Reading

+

Further Reading

FIXME