Category: File IO
Syntax:
fileExportWeb:Int(filepath:String)
Int
Copies a file from the web file store to the user's computer, as a browser download (usually into the Downloads folder).
Takes filepath (the name of a file in the web file store).
Returns: 1 if the download started, 0 if the web file store has no such file.
View detailed documentation online
; Save, then give the player a copy
Local f:Int = fileWriteFile("save.txt")
fileWriteLine(f, "level=7")
fileCloseFile(f)
fileExportWeb("save.txt")
BambooBasic © 2026 Michael Denathorn