What is the fastest way to read a text file into a string variable? There can be many possible ways in which it can be done, but I am asking for the fastest.
In my case, I've a txt file which can contain upto million entries. This file would contain a word in each line, and I need to operate on each word.