Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of fs.readSync Use #28

Open
lancedockins opened this issue Sep 20, 2023 · 0 comments
Open

Examples of fs.readSync Use #28

lancedockins opened this issue Sep 20, 2023 · 0 comments

Comments

@lancedockins
Copy link

Are there any good examples of fs.readSync? I already know how to use readFileSync but need to support an alternate use case that reads larger text files (strings) either line by line or blocks of bytes at a time. I've tried a few different implementations of fs.readSync so far but so far it seems like those implementations aren't working. They aren't throwing errors. They're just reading zero bytes at a time. So I was hoping that there were some good code examples that could show how to use that properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant