TextFile Constructors
Overloads
TextFile(FileInfo)
Initialises a new instance of the TextFile class from a file on disk.
public TextFile(FileInfo file);
View source
Parameters
TextFile(String, Stream)
Initialises a new instance of the TextFile class from a Stream containing the file.
public TextFile(string name, Stream text);
View source
Parameters
| Name |
Type |
Description |
name |
String |
The name of the file. |
text |
Stream |
A Stream containing the file. The stream will be read to the end and left open. |
TextFile(String, String)
Initialises a new instance of the BinaryFile class from a string containing the file.
public TextFile(string name, string text);
View source
Parameters
| Name |
Type |
Description |
name |
String |
The name of the file. |
text |
String |
The contents of the file. |