I am working on a word guessing game and I have created a text file with each line being a word (it's 1000 lines).
I don't want to get the whole text file into memory. I just want to read a random line of the text file and put it into a string.
I did a quick search and everybody was reading the whole file into memory and getting a random line from there but I want to read a random line in form of a string.