Reading Text Files as One Chunk

by Dec 29, 2010

In a previous tip, you learned how to quickly read in text files. The result was a string array. If you want to read the text as one large string ultrafast, you can use this approach:

[System.IO.File]::ReadAllText("c:\somefile.txt")

Twitter This Tip!
ReTweet this Tip!