Instead of loading / reading the complete file, you could use a tool to split the text file in smaller chunks. If you're using Linux, you could just use the split
command (see this stackoverflow thread). For Windows, there are several tools available like HJSplit (see this superuser thread).