TextFileStream Constructor

Initializes a new instance of the TextFileStream class.

Definition

Namespace: DevCase.Core.DataProcessing.TextFiles
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public TextFileStream(
	string filepath,
	Encoding enc = null
)

Parameters

filepath  String
The textfile path.

If the path doesn't exists, the file will be created.

enc  Encoding  (Optional)
The file encoding used to read the textfile.

If enc value is , an attempt to detect the encoding will be realized, if the attempt to detect the file encoding fails, then Default will be used.

Exceptions

FileNotFoundException File not found.

See Also