fileImportWeb

Category: File IO

Syntax:

fileImportWeb:Int(filter:String)


Parameters

Returns

Int



Summary

Lets the user pick a file on their computer and copies it into the web file store under its own name, so fileReadFile and the other file functions can read it.

Takes filter (the file types to offer, e.g. ".sav,.txt" ("" for any file)).

Returns: 1 if the file picker opened, 0 if an import is already waiting for the user.

View detailed documentation online



Example
If igiButton("Load...") Then fileImportWeb(".sav")

; every frame:
Local name:String = fileImportWebResult()
If name <> "" And name <> "*cancelled*" Then LoadGame(name)

BambooBasic © 2026 Michael Denathorn