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

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 manual >> 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);

作者

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:
Wed Jan 26 16:25:11 CET 2011