I want to separate a large file with millions of lines into files with 1000 lines each.
I'm thinking of iterating in each line of the large file and writing each line into a new file until it is 1000 lines and then creating another file until it is 1000 lines and so on, im a newbie here and im having hard time putting it in python code.
Thanks in advance for the help.
Just an additional info, i'm using python 2.7.5 in win7