Skip to content

fputs

io · scripts/io/fputs.m

: status = fputs (fid, string)

Write string to the stream fid with no formatting.

The string is written verbatim (no automatic newline). Optional status is 0 on success and -1 when the write fails.

Octave-compatible public name. MATLAB has no public fputs; portable code can use fprintf. Unmarked MATLAB-mode scripts that never call this name are unaffected.