Reference | open()
| Syntax | open(path).read() | |
| Description | The open() command opens a file specified by the path parameter. The open() command can be used in two ways: open(path).read(), which returns the file's text content as a string, or, alternatively, open(path).readlines(), which returns a list of text lines. | |
| Returns | the file's text content, as a string | |
| Tutorial | Strings | |
| Example |
|

