Dear script gurus,
I have a text file as big as 1GB++ (too big to be opened by notepad and would consume too much memory if opened up under wordpad. What I would like to do now, is to write a scrip to break that big file into a few text files (eg. to split that 1GB file to 4 250MB files or even more) for it to be managable.
I am new in AutoIT scripting and from what I read (the help function and sampels of scripts posted), I can either choose to read the 1GB file, line by line and write it to another file, setting criteria to save, close and open up new file to populate, thus breaking the file down to a few chunks; or
Read the whole file into an array and then break it out into mane smaller files.
Not too sure the latter method would work as my PC runs on 2GB of RAM (and from experience, the last time I attempted to open up the 1GB file, my RAM utilisation went up to 2.5GB!! almost crashing my OS!) Where else, the former method, could take ages to complete.
Is there another method to work on this?... pls advise. thank you.