Name

Reset Procedure

Class

Microsoft.VisualBasic.FileSystem

Syntax

Reset(  )

Description

Closes all files that have been opened using the FileOpen procedure

Rules at a Glance

The contents of any current file buffers are written to disk by the Reset procedure immediately prior to Reset closing the respective files.

Programming Tips and Gotchas

The Reset procedure is generally used as a last resort, cleaning up if your program is terminating abnormally. Normally, you should write code to close each open file using the FileClose procedure.

Get VB.NET Language in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.