Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
def read_large_file(path): with open(path) as f: for line in f: yield line.strip() for line in read_large_file("huge.log"): process(line) # one line in memory at a time
Result
Open