diff options
| author | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-03-13 02:24:10 +0000 |
|---|---|---|
| committer | dacctal <120422854+dacctal@users.noreply.github.com> | 2026-03-13 02:24:10 +0000 |
| commit | a78778866445b6f56fb80aedb7246ac2acd84a38 (patch) | |
| tree | db16024daf5c8312e8781ac40ffd8d3c14e25341 /main.v | |
init
Diffstat (limited to 'main.v')
| -rw-r--r-- | main.v | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +module main + +import os + +fn main() { + if os.args.len < 2 { return } + for arg in os.args[1..] { + mut f := os.create(arg) or { + println('file not writable') + return + } + f.close() + } +} |
