sapphire/examples/file.sp
2022-08-26 18:19:45 +02:00

10 lines
213 B
SourcePawn

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