# Is it possible to use tokenizeSequence directly from a reader?

**URL:** <https://ziggit.dev/t/is-it-possible-to-use-tokenizesequence-directly-from-a-reader/13376>\
**Category:** Help\
**Tags:** language\
**Created:** [December 5, 2025, 2:13pm UTC](https://ziggit.dev/t/is-it-possible-to-use-tokenizesequence-directly-from-a-reader/13376 "2025-12-05T14:13:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jmctagger](https://ziggit.dev/letter_avatar_proxy/v4/letter/j/8dc957/32.png) [@jmctagger](https://ziggit.dev/u/jmctagger)\
**Post date:** [December 5, 2025, 4:25pm UTC](https://ziggit.dev/t/is-it-possible-to-use-tokenizesequence-directly-from-a-reader/13376/2 "2025-12-05T16:25:25Z")

</div>

Recent threads intersect your question (though they do not reference tokenizeSequence); you might find them helpful since your sequence delimiter is \n, the same as used in these examples…

For 0.15:

> [@Back to Basics: File Reading with the New IO in Zig](https://ziggit.dev/t/back-to-basics-file-reading-with-the-new-io-in-zig/12180):
>

For 0.16:

> [@fs.File and io.File](https://ziggit.dev/t/fs-file-and-io-file/13362/5):
>
> Ha! Now that’s horizontal-scrollbar-clear! In this case, though there are some snippets in the release notes and elsewhere, I’d like critique on a couple of possible basic usage examples for reading a text file line-by-line assuming \n delimiters: First, an allocator-less one that requires a big-enough buffer: const io = std.testing.io; var file = try std.Io.Dir.cwd().openFile(io, "test.txt", .{}); defer file.close(io); var buf: [1024]u8 = undefined; // must be big enough for e…

---

_[View the full topic](https://ziggit.dev/t/is-it-possible-to-use-tokenizesequence-directly-from-a-reader/13376)._
