blob: b5c9c0892e886cd01222f8f1b5724ca642a108bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- read-text ---
// Test reading plain text files
#let data = read("/assets/text/hello.txt")
#test(data, "Hello, world!\n")
--- read-file-not-found ---
// Error: 18-44 file not found (searched at assets/text/missing.txt)
#let data = read("/assets/text/missing.txt")
--- read-invalid-utf-8 ---
// Error: 18-40 file is not valid utf-8
#let data = read("/assets/text/bad.txt")
|