Skip to main content

writefile

info

Usually the database API is a better choice for persistent storage.

writefile

Overwrites the file with the passed text. The file is created if it doesn't exist.

writefile(filename: string, text: string)

Arguments

NameDescriptionType
filenameThe filename relative to the CS:GO directory.string
textThe text to write to the file.string