loom
1import "io" io;
2
3bool ok;
4
5[str, ok] = [io.read("test.txt"), true]; // Кортеж
6
7[str, ok] = {str : io.read("test.txt"), ok : true}; // Структура
8
9[str, ok] = io.readWithError("test.txt");
10
11wait io.write("test.txt", str);
12
13ok = io.writeWithError("test.txt", str);
14
15print str;
16print io.read("test.txt");
17
18////////////////////////////////
19
20function f () -> auto {
21return [io.read("test.txt"), true];
22
23return {str : io.read("test.txt"), ok : true};
24}
25
26