Simple implementation of external sort huge text file. String delimiter is CR or CRLF symbol
- VisualStudio 2010+
- MinGW 3.2 (gcc 4.8.1)
- Linux GCC 4.8.1+
- mkdir build && cd build
- cmake .. or cmake -G"Visual Studio " ..
- use generated files
You can debug this algo on small files too by using define DEBUG_MERGE. For example:
- Generate a test file with lines of 6 characters long
- Rebuild project with define 'DEBUG_MERGE=6' (make -DDEBUG_MERGE=6)
- Start debug