{size} ← cvec ##.utf8put fid                ⍝ Char vector ⍺ to UTF-8 file ⍵.

Character  vector  [cvec]  is written to file [fid] in UTF-8 format and the file
size in bytes returned as a shy result.


    ⎕←'Hello ⍳⍴ World' utf8put 'tmp.txt'    ⍝ put 18-byte UTF-8 file.

    utf8get 'tmp.txt'                       ⍝ get file.
Hello ⍳⍴ World

    notes.utf8put   utf8put 'tmp.txt'       ⍝ put these notes.

    notes.utf8put ≡ utf8get 'tmp.txt'       ⍝ get these notes.

See also: utf8get int putfile

Back to: contents

Back to: Workspaces