CreateZip

Family: File · 2 forms

What it does

CreateZip writes a value: it creates rather than reads. It takes zipID (an integer) and filename (a string), and returns nothing. That is the first of 2 forms. zipID is the id you are giving a Zip object: every later call names it by that number.

Syntax

1
CreateZip(zipID integer, filename string)
2
CreateZip(filename string) → integer

Parameters

NameTypeIn forms
zipIDinteger1
filenamestringall

What each form returns

1CreateZip(1, "assets/data.dat")nothing
2zip = CreateZip("assets/data.dat")integer

Example · generated

Form 1, you choose the id yourself

CreateZip(1, "assets/data.dat")DO  Sync()LOOP

Form 2, the command hands back the id

zip = CreateZip("assets/data.dat")DO  Sync()LOOP

CreateZip is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.

61 commands in File