Skip to content
SiteEmail

cohtml.Net.IFileManipulator

Object capable of enumerating directories and opening files.

Inherits from SystemIDisposable

Name
virtual voidDispose()
virtual boolEnumerateFolder(string path)
Prepares the given folder for enumeration.
virtual stringNextFile()
Returns the name of the i-th file in the current folder.
virtual IStreamReaderOpenFile(string path)
Opens the given file for reading.
Name
boolswigCMemOwn
virtual void Dispose()
virtual bool EnumerateFolder(
string path
)

Prepares the given folder for enumeration.

Parameters:

  • path the path to the folder

Return: whether the folder is ready for enumeration

virtual string NextFile()

Returns the name of the i-th file in the current folder.

Return: the name of the file (only the name, not its path)

virtual IStreamReader OpenFile(
string path
)

Opens the given file for reading.

Parameters:

  • path path to the file

Return: a stream reader for the given file or nullptr if the path does not exist

bool swigCMemOwn;