Home Notices Documents Classes Download Others Rice
Classes  >  writer  >  writer(string)
writer class : writer(string) fitter

Description

Gets a new instance of writer class which is initialized with the file path.

Syntax

new writer(string fullPath)

Arguments

ClassNameDescription
stringfullPathThe complete file path.

Return value

ClassDescription
writerA new instance of writer class that is initialized by specified value.

Sample code

1:

writer w = new writer("c:\somewhere...\sample.txt");

Notes

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

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

The instance that was created is initialized as overwrite mode.

Links for reference

Copyright © Rice All rights reserved.