We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e80903 + 43b6c11 commit f4df2b8Copy full SHA for f4df2b8
large_files_reading.py
@@ -0,0 +1,4 @@
1
+with open("new_project.txt", "r" , encoding="utf-8") as file: # replace "largefile.text" with your actual file name or with absoulte path
2
+# encoding = "utf-8" is especially used when the file contains special characters....
3
+ for f in file:
4
+ print(f.strip())
0 commit comments