Interface FileDataTypes.IFileReader
Interface for customizing how data files are read.
Namespace: LaunchDarkly.Sdk.Server.Integrations
Assembly: LaunchDarkly.ServerSdk.dll
Syntax
public interface FileDataTypes.IFileReader
Methods
| Edit this page View SourceReadAllText(string)
Opens a text file, reads all lines of the file, and then closes the file.
Declaration
string ReadAllText(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The file to open for reading. |
Returns
| Type | Description |
|---|---|
| string | A string containing all lines of the file. |
Exceptions
| Type | Condition |
|---|---|
| FileNotFoundException | The file specified in path was not found. |