-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
BufReader hang #137307
Comments
Not a bug in rust. You opened the file without saying Also, please read the documentation of append(). https://doc.rust-lang.org/stable/std/fs/struct.OpenOptions.html#method.append |
rookie mistake on my part. Took this code excerpt out of context from an application I am writing. That's a bug on my part! Thank you! |
* The contributor on this [thread](rust-lang/rust#137307) helped me realize I didn't have a `read(true)`. This fixed the issue
I tried this code:
Steps to reproduce
main.rs
file withrustc main.rs
file.txt
with the following contents:./main file.txt
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: