fs ¶
Vara's library for managing the file system.
const fs = require("@vara/fs")
local source = buffer.fromstring("hello guys")
const path = "example.txt"
fs.Write(path,source)
local fileContents = fs.Read(path)
print(fileContents)
functions¶
Write -> () ¶
Writescontents into the file that path points to.
Read -> buffer ¶
Reads the file contents of the file thatspath points to.