There is a small help in compile time constants define s through the C prepreprocessor which allow builds with different settings and array lengths example here but that isnt a true solution what if you want to read a file with an indeterminate number of lines, all of which are of an unknown length?