Welcome to the Board!
How much data are we talking about here?
If it is a crazy amount of data, you should probably look at breaking it up into smaller chunks (i.e. if you have a file that has a years worth of data, maybe have 12 monthly files instead).
Or, store the data somewhere else, like in a database program like SQL or Oracle.