FileSystemDocumentWriterFactory.CreateTextWriter Method
- Namespace
- Kampute.DocToolkit
- Assembly
- Kampute.DocToolkit.dll
Definition
Creates a TextWriter for writing documentation content to the specified relative path.
public virtual TextWriter CreateTextWriter(string relativePath)Parameters
relativePathstring- The relative path where the documentation content will be written.
Returns
- TextWriter
- A TextWriter for writing documentation content.
Exceptions
- ArgumentNullException
- Thrown when
relativePathisnullor empty.

relativePathto determine the full file path. If the directory for the resulting path does not exist, it will be created automatically. The returned TextWriter writes directly to the specified file and does not apply any content transformations, such as minification.