Function to Read an entire file and return it as a string
Namespace: Crestron.SimplSharp.CrestronIOAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic static string ReadToEnd(
string fileToRead,
Encoding stringEncoding
)
Parameters
- fileToRead String
- File to open for reading.
- stringEncoding Encoding
- Encoding used to convert the file to a string.
Return Value
StringThe contents of the file according to the Encoding passed in.
ExceptionsVersion Information
.NET
Supported in: 6.0
.NET Compact Framework
Supported in: 3.5
See Also