Skip to content

Commit 345fbbc

Browse files
committed
again, little fixes
1 parent a5edc28 commit 345fbbc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

files.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ use the `read()` method.
259259
>>>
260260
```
261261

262-
You can also open full paths, like `open('C:\\Users\\me', 'r')`.
262+
You can also open full paths, like `open('C:\\Users\\me\\myfile.txt', 'r')`.
263263
The reason why we need to use `\\` when we really mean `\` is that
264264
backslash has a special meaning. There are special characters like
265265
`\n`, and `\\` means an actual backslash.
@@ -294,9 +294,9 @@ you don't need to double anything or use `r` in front of paths.
294294
>>>
295295
```
296296

297-
## Example: File viewer
297+
## Examples
298298

299-
The following program prints the contents of files:
299+
This program prints the contents of files:
300300

301301
```py
302302
while True:
@@ -311,8 +311,6 @@ while True:
311311
print(line.rstrip('\n'))
312312
```
313313

314-
## Example: User information
315-
316314
This program stores the user's username and password in a file.
317315
Plain text files are definitely not a good way to store usernames
318316
and passwords, but this is just an example.

0 commit comments

Comments
 (0)