summaryrefslogtreecommitdiff
path: root/main.v
diff options
context:
space:
mode:
authordacctal <120422854+dacctal@users.noreply.github.com>2026-03-13 02:24:10 +0000
committerdacctal <120422854+dacctal@users.noreply.github.com>2026-03-13 02:24:10 +0000
commita78778866445b6f56fb80aedb7246ac2acd84a38 (patch)
treedb16024daf5c8312e8781ac40ffd8d3c14e25341 /main.v
init
Diffstat (limited to 'main.v')
-rw-r--r--main.v14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.v b/main.v
new file mode 100644
index 0000000..9235b18
--- /dev/null
+++ b/main.v
@@ -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()
+ }
+}