So I'm trying to split a textfile by newlines, but I'm stumped as to how I can create an array of dynamic length.
If I can't, should I just create "a really long array" to be used for storage?
The example on rosetta code is set at compile-time, but since files are being read during runtime, I can't use let.
I was just reading about that, there's also mentions of Open Arrays, but not about how they're used, instantiated, etc.
What's the difference, and what is each used for?
You might want to read my article on seq, it was meant to be "exhaustive" but its not (I missed mentioning how to copy seqs (assignment) and that you can use add() with seqs also):
http://goran.krampe.se/2014/12/03/nim-seq/
The article "slides over" into code, but its highly commented to be readable.
For all my Nim articles: