result_expect

Function result_expect 

Source
pub fn result_expect()
Expand description

尝试打开名为“hello.txt“的文件,并返回一个包含文件内容的字符串,如果文件打开失败,则返回相应的错误。