Hi everyone,
I want to write a method that reads a random line from a text file(each line only containing one word).
I was wondering is there a more memory efficient way to do this rather than storing all of the lines in a monstrous array and simply selecting a random element of such array. This would prove most difficult if say i was to open several text files each with a few thousand words each.
Any educational direction is more than welcome.
Thank you
Ryan