sapphire/examples/file.sp
2022-08-25 10:01:14 +02:00

10 lines
207 B
SourcePawn

const io from @'core/io';
const { open } from @'core/fs';
let @main in {
io.out("What is your name? ");
let name = io.in();
let file = open("name.txt");
file.write(name);
file.close();
}