https://github.com/bee-san/linebytes
.lines() for non-UTF8 files by reading bytes and breaking on 0x0A (linefeed)
https://github.com/bee-san/linebytes
Last synced: 18 days ago
JSON representation
.lines() for non-UTF8 files by reading bytes and breaking on 0x0A (linefeed)
- Host: GitHub
- URL: https://github.com/bee-san/linebytes
- Owner: bee-san
- License: mit
- Created: 2020-09-01T00:06:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-09-08T16:40:56.000Z (over 5 years ago)
- Last Synced: 2025-03-13T06:14:25.411Z (10 months ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LineBytes
**Update** I have no idea how to implement this as an iterator, so this project is on pause until then.
.lines() for non-UTF8 files by reading bytes and breaking on 0x0A (linefeed)
You want to read a file line by line.
That file isn't UTF8, so you cannot read into a string or use `.lines()`.
This little library solves that problem.
This is something I made to solve my own problem, so if you have any requirements / want to improve it please submit a PR.