From 43b6c1142c7b9a78a3731f123d783597ec8c1be6 Mon Sep 17 00:00:00 2001 From: Abhilash Date: Tue, 29 Apr 2025 22:58:13 +0530 Subject: [PATCH] Added python script for reading large files --- large_files_reading.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 large_files_reading.py diff --git a/large_files_reading.py b/large_files_reading.py new file mode 100644 index 00000000000..a5ce0936f8a --- /dev/null +++ b/large_files_reading.py @@ -0,0 +1,4 @@ +with open("new_project.txt", "r" , encoding="utf-8") as file: # replace "largefile.text" with your actual file name or with absoulte path +# encoding = "utf-8" is especially used when the file contains special characters.... + for f in file: + print(f.strip())