View Single Post
Old May 31st, 2006, 7:08 AM   #6
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 825
Rep Power: 4 The Dark is on a distinguished road
That looks more like an output file rather than an input file.

The program seems to be looking at all the files in a directory, but it is only sorting the records of each file as it reads them, and then dumping them out to the same output file (LayerFile.txt). This will result in LayerFile.txt having blocks of sorted output, but nothing has sorted the whole lot.

How many input files are you processing in each run? I would recommend putting a line like:
fprintf(fp_dump, "%s:\n", stFindsFiles.pcPathName[j]);
Just before the "dump list" loop.
The Dark is offline   Reply With Quote