Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1 @@
(io:writeFile "output.txt" "hello, world!")

View file

@ -1,3 +1 @@
w = new Writer["test.txt"]
w.print["I am the captain now."]
w.close[]
w = new Writer["test.txt"].printAndClose["I am the captain now."]

View file

@ -2,10 +2,19 @@ package main
import "core:fmt"
import "core:os"
import "core:c/libc"
main :: proc() {
dummy := "henlo"
succ:= os.write_entire_file("file",transmute([]u8)(dummy),false)
dummy := "This is a string."
write := os.write_entire_file("file",transmute([]u8)(dummy),false)
// Returns an error
write2 := os.write_entire_file_or_err("file2",transmute([]u8)(dummy),false)
// If error than do something
if (write2!=nil){
fmt.println("err")
}
}

View file

@ -0,0 +1 @@
writeLines(text="This is a string.", con="file.txt")