Skip to content

Commit 02ee1fb

Browse files
committed
Level 4: Dateien: Hinweis auf Path.read_text
1 parent 3f5df0c commit 02ee1fb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Level_04/dateien.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
# eine Datei auslesen
2323

24+
# schneller: print(Path("loremipsum.txt").read_text())
2425
lorem_ipsum = Path("loremipsum.txt").open("r")
2526
print(lorem_ipsum.read())
2627
lorem_ipsum.close()

0 commit comments

Comments
 (0)