pub fn read_n(&mut self, count: usize) -> String {
        let mut s = String::from("");
        for _ in 0..count {
            match self.read() {
                None => {}
                Some(c) => s.push(c),
            }
        }
        s
    }
// assume that you still have count characters to read in your buffer
assume that you still have count characters to read in your buffer
assume that you still have count characters to read in your buffer
pub fn read_n(&mut self, count: usize) -> String {
        let mut s = String::from("");
        for _ in 0..count {
            match self.read() {
                None => {}
                Some(c) => s.push(c),
            }
        }
        s
    }
pub fn read_n ( & mut self , count : usize ) -> String { let mut s = String :: from ( " " ) ; for _ in 0 .. count { match self . read ( ) { None => { } Some ( c ) => s . push ( c ) , } } s }
assume that you still have count characters to read in your buffer
assume that you still have count characters to read in your buffer
&mut self
count
usize
&mut self
count
usize