171
edits
(→Tier 1: add keyword open thingie) |
m (→Tier 1: added another open syntax option) |
||
| Line 27: | Line 27: | ||
*# Throws an error if the directory does not exist or is inaccessible. | *# Throws an error if the directory does not exist or is inaccessible. | ||
* open(path, mode, permissions, encoding) or open(path, {keywords}) or open({keywords}): returns an IO stream object that supports the requested mode and encoding. | * open(path, mode, permissions, encoding) or open(path, mode, {keywords}) or open(path, {keywords}) or open({keywords}): returns an IO stream object that supports the requested mode and encoding. | ||
*# The encoding must be undefined, "utf-8", or "utf-16". Other encodings may be specified in the future. | *# The encoding must be undefined, "utf-8", or "utf-16". Other encodings may be specified in the future. | ||
*## An undefined encoding means "binary", and implies that read and write methods will operate on byte array objects (not yet specified) instead of strings. The "cookie" returned by "tell" and accepted by "seek" can only be an integer for binary encoding (although this tier does not specify those methods). | *## An undefined encoding means "binary", and implies that read and write methods will operate on byte array objects (not yet specified) instead of strings. The "cookie" returned by "tell" and accepted by "seek" can only be an integer for binary encoding (although this tier does not specify those methods). | ||
edits