use std::fs::File;
use std::io::Write;
use std:: fs;
fn main() {
let mut file = File::create("example.txt").unwrap();
file.write_all(b"Hello, world!").unwrap();
file.write_all(b"\n").unwrap();
file.write_all("中文测试".as_bytes()).unwrap();
let content = fs::read_to_string("example.txt").unwrap();
println!("{}", content);
}