write(1)

NAME
write - write in a formatted file

DESCRIPTION
write(file-name,a,[format])
write(file-name,a,k,format)

PARAMETERS

file-name
    : character string or integer (file name)

a   : real matrix or column vector of character strings.

format
    : write format

k   : vector

DESCRIPTION
writes row-by-row a real matrix or a vector of character strings in a formatted file.

Format examples : (1x,e10.3,5x,3(f3.0)) , (10x,a20) ; integer format are not valid. (use e.g. string to convert to string)

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.

EXAMPLE
A=rand(5,3); write('asave',A); A=read('asave',5,3);
write(%io(2),A,'('' | '',3(f10.3,'' | ''))')
write(%io(2),string(1:10))
write(%io(2),strcat(string(1:10),','))

SEE ALSO
file, writb, read, print, string, fprintf, printf, sprintf