use std::fs;
let data = "Hello from Codiga!";
fs::write("/home/filename", data).expect("Impossible to write file");
Write into a file
Write a String to a file
0 Comments
Add Comment
Log in to add a comment
use std::fs;
let data = "Hello from Codiga!";
fs::write("/home/filename", data).expect("Impossible to write file");
Write into a file
Write a String to a file
Log in to add a comment