diff --git a/files.html b/files.html index 76b4342..65266d5 100644 --- a/files.html +++ b/files.html @@ -279,7 +279,7 @@ ValueError: zero length field name in format
You can write to files in much the same way that you read from them. First you open a file and get a stream object, then you use methods on the stream object to write data to the file, then you close the file. -
To open a file for writing, use the open() method and specify the write mode. There are two file modes for writing:
+
To open a file for writing, use the open() function and specify the write mode. There are two file modes for writing:
mode='w' to the open() function.