1. You read the entire file and perform simple to complex parsing on the data received.
2. You'll read a file by sentence, generally ending with 0x0a (newline, '\n'), often placing each line in a string. This method is rather limited.
If you go with method one, just remove each newline and replace it with a space.
If you go with method two, then just read each line and insert the string into your resulting string.
I recommend method one. It's more straight forward and what you'll be using in almost all situations.
Or were you wanting code >.>
Well, it's quite straight forward. All you have to do is create a string instance. Then, extract each line from the file. Then, append the extracted line to the back of the string.