splitting and merging a text file
Posted on 2004-08-21
Thanks to JR2003 I have got a program that splits text files into splits of 1000. Now I need to take each of those splits and merge them together - so for example instead of the file being:
etc upto 1000
it will be
sometimes the file won't have 10000 rercords in becasue there may have been some records left over at the end of the splits, so the last file may only have a few hundred records in it.
below is the code JR2003 gave me for splitting the files, I would prefer to have the merging part seperate if possible. Can anyone get me started? don't really have much of an idea how to go about this.