DeleteFile

Family: File · One form

What it does

DeleteFile writes a value: it deletes rather than reads. It takes szFile (a string), and returns nothing.

Syntax

DeleteFile(szFile string)

Parameters

NameType
szFilestring

Every form returns

nothing

Example · generated

DeleteFile("assets/data.dat")DO  Sync()LOOP

DeleteFile 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.

Related commands

61 commands in File