Name

mputl — writes strings in an ascii file

Calling Sequence

r = mputl(txt ,file_desc)

Parameters

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

See Also

mget, mgetl, mclose, mfprintf, mput, mputstr, mopen, write

Authors

S. Steer

Allan CORNET