未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
read
Reads plain text or data from a file.
By default, the file will be read as UTF-8 and returned as a string.
If you specify encoding: none
, this returns raw bytes instead.
Example
An example for a HTML file: \
#let text = read("example.html")
#raw(text, lang: "html")
Raw bytes:
#read("tiger.jpg", encoding: none)

引数Parameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
path
RequiredRequired parameters must be specified when calling the function.PositionalPositional parameters are specified in order, without names.
Required
Required parameters must be specified when calling the function.
Positional
Positional parameters are specified in order, without names.
Path to a file.
For more details, see the Paths section.