reading whole text file into one string ?

how to do this (whole text file by its spaces, tabs, new lines)
thanks
Topic archived. No new replies allowed.