Function: f-write-text

f-write-text is a byte-compiled function defined in f.el.

Signature

(f-write-text TEXT CODING PATH)

Documentation

Write TEXT with CODING to PATH.

TEXT is a multibyte string. CODING is a coding system to encode TEXT with. PATH is a file name to write to.

Other relevant functions are documented in the f group.

Shortdoc

;; f
(f-write-text "Hello world" 'utf-8 "path/to/file.txt")
    -> [it depends]
  (f-write "Hello world" 'utf-8 "path/to/file.txt")
    -> [it depends]

Aliases

f-write

Source Code

;; Defined in ~/.emacs.d/elpa/f-20241003.1131/f.el
(defun f-write-text (text coding path)
  "Write TEXT with CODING to PATH.

TEXT is a multibyte string.  CODING is a coding system to encode
TEXT with.  PATH is a file name to write to."
  (f-write-bytes (encode-coding-string text coding) path))