Is there a Python file type for accessing random lines without traversing the whole file? I need to search within a large file, reading the whole thing into memory wouldn\'t
file objects have a seek method which can take a value to particular byte within that file.
For traversing through the large files, iterate over it and check for the value in each line. Iterating the file object does not load the whole file content into memory.