FileReadAllText Method (String) |
Opens a text file, reads all lines of the file, and then closes the file.
Namespace: CMS.AzureStorageAssembly: CMS.AzureStorage (in CMS.AzureStorage.dll) Version: 13.0.131
Syntax public override string ReadAllText(
string path
)
Parameters
- path
- Type: SystemString
Path to file.
Return Value
Type:
StringExceptions Exception | Condition |
---|
ArgumentNullException | path is null |
ArgumentException | path is empty or contains invalid characters |
PathTooLongException | path is too long |
FileNotFoundException | path does not exist |
See Also