We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e673b25 commit 9fe413bCopy full SHA for 9fe413b
docs/advanced/files.md
@@ -15,7 +15,11 @@ let readComplete: EventLoopFuture<Void> = req.fileio.readFile(at: "/path/to/file
15
// Or
16
17
let file = try await request.fileio.readFile(at: path, chunkSize: 16 * 1024) // 32Kb, ~5 chunks
18
-
+for try await chunk in file {
19
+ readContent += String(buffer: chunk) //converting chunks into string
20
+}
21
+print(readContent)
22
+
23
// Read is complete
24
```
25
0 commit comments