Reset (statement)

Syntax Reset
Description Closes all open files, writing out all I/O buffers.
Example This example opens a file for output, closes it with the Reset statement, then deletes it with the Kill statement.
Sub Main()
????Open "test.dat" for Output Access Write as # 1
????Reset
????Kill "test.dat"
                           
????If FileExists("test.dat") Then
????????MsgBox "The file was not deleted."
????Else
????????MsgBox "The file was deleted."
????End If
End Sub
See Also Close (statement); Open (statement).