You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep running into situations where I need to read (BufferedReader) from a list of comma separated values or newline separated values and then storing the result. Should I have to trim off the delimiter every time? I feel like this is a common enough use case to be included in libstd.
//reading until newline and trimming off the newline chars.//probably a better way to do this.let tempvalue = lineIter.next().unwrap().to_str();let length = tempvalue.len();let value = tempvalue.as_slice().slice_to( length - 2);