Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - 日本語

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Files : Input/Output functions > mputl

mputl

アスキーファイルに文字列を書き込む

呼び出し手順

r = mputl(txt ,file_desc)

パラメータ

r

関数がファイルに正しく書き込んだかどうかをチェックするために %t または %f を返します.

file_desc

ファイル名を指定する文字列または mopenにより返された 論理ユニット.

txt

文字列のベクトル.

説明

mputl 関数により 一連の行を文字列のベクトルとしてアスキーファイルに 書き込むことができます.

fd = mopen(TMPDIR+'/text_mputl.txt','wt');
mputl('Hello World',fd);
mclose(fd);

fd = mopen(TMPDIR+'/text_mputl.txt','rt');
disp(mgetl(fd));
mclose(fd);

参照

  • mget — 指定したバイナリ形式で バイトまたはワードを読み込み, double に変換
  • mgetl — アスキーファイルから行を読み込む
  • mclose — オープンされているファイルを閉じる
  • mfprintf — 変換,整形し,ファイルにデータを書き込む
  • mput — 指定したバイナリ形式でバイトまたはワードを書き込む
  • mputstr — ファイルに文字列を書き込む
  • mopen — ファイルをオープン
  • write — フォーマットされたファイルに書き込む

作者

S. Steer

Allan CORNET

<< mput Files : Input/Output functions mputstr >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu May 12 11:45:56 CEST 2011