Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Use buffered io #47

Open
chpio opened this issue Dec 1, 2017 · 2 comments
Open

Use buffered io #47

chpio opened this issue Dec 1, 2017 · 2 comments

Comments

@chpio
Copy link

chpio commented Dec 1, 2017

https://github.com/maidsafe/config_file_handler/blob/630ff159d87062c65b77d1c7918032388b1e122b/src/file_handler.rs#L277-L278

example code from the rust doc:

use std::fs::File;
use std::io::BufReader;
use std::io::prelude::*;

let file = File::open("foo.txt")?;
let mut buf_reader = BufReader::new(file);
let mut contents = String::new();
buf_reader.read_to_string(&mut contents)?;
assert_eq!(contents, "Hello, world!");

maidsafe-archive/crust#865

@chpio
Copy link
Author

chpio commented Dec 2, 2017

serde-rs/json#160

@chpio chpio closed this as completed Jan 9, 2019
@chpio
Copy link
Author

chpio commented Mar 28, 2019

this hasn't been fixed yet? i should reopen it then...

@chpio chpio reopened this Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant