9xc IO - Owen2k6/GoOS GitHub Wiki

File I/O (IO library)

Requires:

import IO

Make a file

MkFile >> "0:\\notes.txt"

Make a directory

MkDir >> "0:\\data"

Write a file

WrFile >> "0:\\notes.txt", "Hello"
String msg = ReadLine
WrFile >> "0:\\notes.txt", msg
  • First argument is the path (string literal or string variable).
  • Second argument is the content (string literal or string variable).
  • Encoded in UTF‑8.
⚠️ **GitHub.com Fallback** ⚠️