Read a text file to a string

By [)ia6l0 iii

You can read a text file into a string. But practically speaking, not sure why one would do this.

string entireText = System.IO.File.ReadAllText( fullfilepath );

Related FAQs

You can store files as embedded resources and read them from your code at runtime.
Read a text file to a string  (834 Views)