Scilab Function

write - write in a formatted file

Calling Sequence

write(file-desc,a,[format])
write(file-desc,a,k,format)

Parameters

Description

writes row-by-row a real matrix or a column vector of character strings in a formatted file. Each row of the a argument begin in a new line of file-desc file. Depending on format a given row of the a argument may be written in more than one line of file-desc file.

Format examples : (1x,e10.3,5x,3(f3.0)) , (10x,a20) ;

See a Fortran book for more precision.

Direct access files : x=write(file_desc,a,k,format). Here k is the vector of records (one record by row, i.e. m=prod(size(k))

write(%io(2),....) writes on Scilab's window.

Examples

See Also