Reset Statement [Runtime]/text/sbasic/shared/03020104.xhpReset statementReset Statement [Runtime]Closes all open files and writes the contents of all file buffers to the harddisk.Syntax:ResetExample:Sub ExampleResetOn Error Goto ErrorHandlerDim iNumber As IntegerDim iCount As IntegerDim sLine As StringDim aFile As StringaFile = "c:\data.txt"iNumber = FreefileOpen aFile For Output As #iNumberPrint #iNumber, "This is a new line of text"Close #iNumberiNumber = FreefileOpen aFile For Input As iNumberFor iCount = 1 to 5Line Input #iNumber, sLineIf sLine <>"" thenremend ifNext iCountClose #iNumberExit SubErrorHandler:ResetMsgBox "All files will be closed",0,"Error"End Sub