OHyMoS.NET Class Library

OhOutputFile.init メソッド (String, Int32)

オブジェクト名(ファイル名)、出力データ文字列の最大長さ (_lineLength)を初期化し、オブジェクト番号を 0 に設定します。

Sets (Ref "OhObject#_objectName") to aFileName and (Ref "#_lineLength") to aLineLength.
public override void init(
   string aFileName,
   int aLineLength
);

パラメータ

aFileName
a String value

aLineLength
an int value

解説

(Ref "#_lineLength") が既に 0 より大きいを持っているなら、 二重設定と判断して OhError 例外を送出します。 (Ref "#_lineLength") が 0 以下ならば、(Ref "#_lineLength") を aLineLength に設定しま す。

_objectName is used also for specifying the output file name into which the receiving object write data.

参照

OhOutputFile クラス | OhymosNet 名前空間 | OhOutputFile.init オーバーロードの一覧