sapphire/examples/file.sp
apio f1668853dd Lots of rewrites.
Planning to use LLVM to make stuff easier. Also, moved the random
sapphire stuff to actual examples in an actual examples/ folder. Also
started a standard library even if the compiler is not ready, because
why not?? Also, it helps the examples.
2022-05-28 20:44:26 +02:00

10 lines
193 B
SourcePawn

import core/io;
import core/fs;
@main {
io.out('What\'s your name? ');
str name = io.in();
fs.File nameFile = fs.open('name.txt');
nameFile.write(name);
nameFile.close();
}