How to read a large text file in chunks using python?
Answers
Answered by
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
Social Sciences,
3 months ago
English,
6 months ago
Social Sciences,
6 months ago
Science,
1 year ago
Math,
1 year ago