diff --git a/README.md b/README.md index dc160f0..eb03d1d 100644 --- a/README.md +++ b/README.md @@ -1576,7 +1576,6 @@ Open * **`'w+'` - Read and write (truncate).** * **`'r+'` - Read and write from the start.** * **`'a+'` - Read and write from the end.** -* **`'t'` - Text mode (default).** * **`'b'` - Binary mode (`'br'`, `'bw'`, `'bx'`, …).** ### Exceptions @@ -1604,6 +1603,7 @@ Open .write() # Writes a string or bytes object. .writelines() # Writes a coll. of strings or bytes objects. .flush() # Flushes write buffer. Runs every 4096/8192 B. +.close() # Closes the file after flushing. ``` * **Methods do not add or strip trailing newlines, not even writelines().** diff --git a/index.html b/index.html index e812624..7d8e0f6 100644 --- a/index.html +++ b/index.html @@ -1338,7 +1338,6 @@ value = args.<name>
  • 'w+' - Read and write (truncate).
  • 'r+' - Read and write from the start.
  • 'a+' - Read and write from the end.
  • -
  • 't' - Text mode (default).
  • 'b' - Binary mode ('br', 'bw', 'bx', …).
  • Exceptions

    • 'FileNotFoundError' can be raised when reading with 'r' or 'r+'.
    • @@ -1363,6 +1362,7 @@ value = args.<name>
      <file>.write(<str/bytes>)           # Writes a string or bytes object.
       <file>.writelines(<collection>)     # Writes a coll. of strings or bytes objects.
       <file>.flush()                      # Flushes write buffer. Runs every 4096/8192 B.
      +<file>.close()                      # Closes the file after flushing.
       
      • Methods do not add or strip trailing newlines, not even writelines().