Import with #import "std/file_go".

FileMode :: struct
FileReadResult :: struct { value: []u8; error: Error; }
ReadFile :: (path: string) -> FileReadResult
WriteFile :: (path: string, data: []u8, mode: FileMode) -> Error
MkdirAll :: (path: string, mode: FileMode) -> Error
Rename :: (oldPath: string, newPath: string) -> Error
Remove :: (path: string) -> Error
Dir :: (path: string) -> string
NotExist :: () -> Error

Source ↗ · All modules