use std::env;
use std::fs::File;
use std::io;
fn main() -> io::Result<()> {
let args: Vec<_> = env::args().collect();
let src = &args[1];
let dest = &args[2];
let mut file = File::open(src)?;
let mut new_file = File::create(dest)?;
io::copy(&mut file, &mut new_file)?;
Ok(())
}
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询