The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Copy A File To Another Location In Rust

TODO: Pull subtitle into page object
Code
use std::fs;

fn main() -> std::io::Result<()> {
    fs::copy("foo.txt", "bar.txt")?;  
    Ok(())
}

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Copy A File To Another Location In Rust

-- code
-- rust

use std::fs;

fn main() -> std::io::Result<()> {
    fs::copy("foo.txt", "bar.txt")?;  
    Ok(())
}


-- ref
-- title: Function std::fs::copy
-- url: https://doc.rust-lang.org/std/fs/fn.copy.html

The builtin function that the contents of one file to another

-- categories
-- Rust 

-- metadata
-- date: 2023-07-11 09:47:37
-- id: 2sqevjwx
-- site: aws
-- type: post
-- status: draft