Python Random File Access for Humans
Easyfile: Random File Access for Humans
Easyfile allows you to access an arbitrary line of a text file.
If your interest is in using Easyfile for Deep Learning, please check Lineflow.
To install Easyfile:
pip install easyfile
import easyfile data = easyfile.TextFile('/path/to/text') data # Access the first line of your text data[-1] # Access the last line of your text data[10:100] # Access the 10th line to the 100 the line of your text
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.