Home Cooker Classes Others Rice CookerGX
Classes  >  writer  >  writer(string,bool)
writer class : writer(string,bool) fitter

Description

Initializes a new instance of writer type for the specified file name, with the specified writing mode.

Syntax

new writer(string fullPath, bool append)

Arguments

ClassNameDescription
stringfullPathThe complete file path.
boolappendA value that indicates the writing mode.

Return value

ClassDescription
writerA writer type instance that was initialized by specified value.

Sample code

writer writerInstance = new writer("c:\Users\....\target.txt", true);

Notes

It's a wrapper of the System.IO.StreamWriter.StreamWriter(String,Boolean).

This fitter creates a instance of Writer type with UTF-8 encoding without a Byte-Order Mark (BOM).

If sets the true to the second argument, the instance of writer type is initialized as append mode. Otherwise, it is initialized as overwrite mode.

Links for reference

Copyright © Rice All rights reserved.