Intro Python: Files
Buy now
Learn more
Introduction
Intro
1. Files, filesystems, and file objects
Exercise files
Section 1: Basic operations
Section 1 — Basic operations.ipynb
2. Opening files
3. Absolute and relative paths
4. Exceptions
5. Reading from files
6. Iterating over files
7. Filtering
8. Comprehensions
9. Exercise #1
10. Exercise #1 solutions
11. Closing files
12. Using "with"
13. Closing files in "for" loops
14. Exercise #2
15. Exercise #2 solutions
16. os.listdir and os.path.join
17. glob.glob
Section 2: Writing to files
Section 2 — Writing to files.ipynb
18. Writing to files
19 Appending with "a"
20 Line-buffered output
21 print and sys.stdout
22 sys.stderr and redefining sys.stdout
23 "with" and multiple files
24 Exercises 3
25 Exercise 3 solutions
Section 3: Encoding and bytes
Section 3 — Encodings, byte strings, and binary files.ipynb
26 Unicode and encodings
27 Specifying an encoding
28 Strings and bytestrings
29 Reading and writing bytes
30 Identifying JPEGs by their bytes
31 Exercises 4
32 Exercise 4 answers
Section 4: Advanced techniques
Section 4 — Advanced techniques.ipynb
33 Moving around with "seek" and "tell"
34 Working with r+, w+, and a+ modes
35 Newlines
36 sys.stdin
37 os.path
38 StringIO
39 os.walk
40 Exercises 5
41 Exercise 5 solutions
Section 5: Common file formats
Section 5 — Common file formats.ipynb
42 pickle
43 csv
44 json
45 Exercises 6
46 Exercise 6 solutions
Section 6: Pathlib
Section 6 — Pathlib.ipynb
47 pathlib
48 pathlib and directories
49 pathlib and files
50 Exercises 7
51 Exercise 7 solutions
Conclusion
52 Conclusion
Products
Course
Section
Lesson
5. Reading from files
5. Reading from files
Intro Python: Files
Buy now
Learn more
Introduction
Intro
1. Files, filesystems, and file objects
Exercise files
Section 1: Basic operations
Section 1 — Basic operations.ipynb
2. Opening files
3. Absolute and relative paths
4. Exceptions
5. Reading from files
6. Iterating over files
7. Filtering
8. Comprehensions
9. Exercise #1
10. Exercise #1 solutions
11. Closing files
12. Using "with"
13. Closing files in "for" loops
14. Exercise #2
15. Exercise #2 solutions
16. os.listdir and os.path.join
17. glob.glob
Section 2: Writing to files
Section 2 — Writing to files.ipynb
18. Writing to files
19 Appending with "a"
20 Line-buffered output
21 print and sys.stdout
22 sys.stderr and redefining sys.stdout
23 "with" and multiple files
24 Exercises 3
25 Exercise 3 solutions
Section 3: Encoding and bytes
Section 3 — Encodings, byte strings, and binary files.ipynb
26 Unicode and encodings
27 Specifying an encoding
28 Strings and bytestrings
29 Reading and writing bytes
30 Identifying JPEGs by their bytes
31 Exercises 4
32 Exercise 4 answers
Section 4: Advanced techniques
Section 4 — Advanced techniques.ipynb
33 Moving around with "seek" and "tell"
34 Working with r+, w+, and a+ modes
35 Newlines
36 sys.stdin
37 os.path
38 StringIO
39 os.walk
40 Exercises 5
41 Exercise 5 solutions
Section 5: Common file formats
Section 5 — Common file formats.ipynb
42 pickle
43 csv
44 json
45 Exercises 6
46 Exercise 6 solutions
Section 6: Pathlib
Section 6 — Pathlib.ipynb
47 pathlib
48 pathlib and directories
49 pathlib and files
50 Exercises 7
51 Exercise 7 solutions
Conclusion
52 Conclusion
Lesson unavailable
Please
login to your account
or
buy the course
.