DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUST
how to open a file rust
use std::fs::File; fn main() -> std::io::Result<()> { let mut f = File::open("foo.txt")?; Ok(()) }
Source by doc.rust-lang.org #
PREVIOUS
NEXT
Tagged:
#open
#file
#rust
ADD COMMENT
Topic
COMMENT
Name
7+4 =
Submit