Computer Science, asked by beautyfool40, 6 months ago

How to read a large text file in chunks using python?

Answers

Answered by ItzSugaryHeaven3
1

Answer:

Python fastest way to read a large text file (several GB)

# File: readline-example-3.py.

file = open("sample.txt")

while 1:

lines = file.readlines(100000)

hope this will helps u...be happy....

Similar questions