Scilab 6.1.0
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
mputstr
ファイルに文字列を書き込む
呼び出し手順
mputstr(str [, fd]);
引数
- fd
スカラー:
mopen関数により返されたファイル記述子.-1は直近にオープンされたファイルを意味します. デフォルト値は-1です.- str
文字列.
説明
mputstr 関数により文字列strを
バイナリファイルに書き込むことが可能です.
例
this_file = pathconvert(TMPDIR+"/mputstr.txt", %F); fd = mopen(this_file, "wt"); mputstr("Scilab", fd); mclose(fd); mgetl(this_file) // Scilab
参照
- mclose — オープンされているファイルを閉じる
- meof — ファイルの終端に達したかどうかを確認する
- mfprintf — 変換,整形し,ファイルにデータを書き込む
- fprintfMat — 行列をファイルに書き込む
- mfscanf — 標準入力から入力を読み込む (C言語の scanf 関数へのインターフェイス)
- fscanfMat — テキストファイルから行列を読み込む
- mget — 指定したバイナリ形式で バイトまたはワードを読み込み, double に変換
- mgetstr — ファイルから文字列を読み込む
- mopen — ファイルをオープン
- mprintf — 変換, 整形し, Scilab主ウインドウにデータを書き込む
- mput — 指定したバイナリ形式でバイトまたはワードを書き込む
- mputstr — ファイルに文字列を書き込む
- mscanf
- mseek — バイナリファイルの中でカレントの位置を設定する.
- mtell — ファイル先頭基準でカレントバイトのオフセットを返す
- mdelete — ファイルを削除
| Report an issue | ||
| << mputl | Files : Input/Output functions | mseek >> |