1▶//! Traits, helpers, and type definitions for core I/O functionality.
2//!
3//! The `std::io` module contains a number of common things you'll need
· · ·
20//! use std::fs::File;
21//!
22▶//! fn main() -> io::Result<()> {
23//! let mut f = File::open("foo.txt")?;
24//! let mut buffer = [0; 10];
· · ·
49//! use std::fs::File;
50//!
51▶//! fn main() -> io::Result<()> {
52//! let mut f = File::open("foo.txt")?;
53//! let mut buffer = [0; 10];
· · ·
84//! use std::fs::File;
85//!
86▶//! fn main() -> io::Result<()> {
87//! let f = File::open("foo.txt")?;
88//! let mut reader = BufReader::new(f);
· · ·
106//! use std::fs::File;
107//!
108▶//! fn main() -> io::Result<()> {
109//! let f = File::create("foo.txt")?;
110//! {
+ 121 more matches in this file