I am trying to read in a text file, store all the numbers in a dynamic multi-dimensional array and then write the numbers back to a binary file using fwrite. The text files are quite large(roughly 100k to 400k), I am trying to parse these files and write them in binary format to save space(about 50%). Multiple files will be combined into one binary file. The files are created consecutively so data integrity is very important. Is there such a thing as a dynamic multi-dimensional array? Or is there a better way to store the large masses of data?