How do you read a flatfile (.txt) until end of file? I dont want to open it with bytes. I am trying to open the flatfile and then separate the string by using explode |. I want to read the whole entire file into 1 string so that I can separate into an array.