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

Description

To specify the encoding, and initializes a new instance of the writer type of the specified file name.

Syntax

new writer(string fullPath, int codePage)

Arguments

ClassNameDescription
stringfullPathThe complete file path.
intlcodePageThe codepage value of the encoding.

Return value

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

Sample code

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

Notes

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

Creates an instance of the writer type with the encoding specified by the second argument. Encoding will be specified by the codepage value.

The instance that was created is initialized as overwrite mode.

Links for reference

Copyright © Rice All rights reserved.