Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Português

Change language to:
English - Français - 日本語 -

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

Manual Scilab >> Arquivos : funções de Entrada/Saída > mputl

mputl

writes strings in an ascii file

Calling Sequence

r = mputl(txt ,file_desc)

Arguments

r

returns %t or %f to check if function has correctly written on the file.

file_desc

A character string giving the name of the file or a logical unit returned by mopen.

txt

a vector of strings.

Description

mputl function allows to write a vector of strings as a sequence of lines in an ascii file.

Examples

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

Authors

S. Steer

Allan CORNET

<< mput Arquivos : funções de Entrada/Saída 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:24:39 CET 2011