Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub openfile()
On Error GoTo errorhandler
'Code
Exit Sub
errorhandler:
'If error = file already open then do whatever
end sub
Function FileOpen(File as string) As Boolean
FileOpen = True
On Error Goto OpenFailed
If Dir(File)<>"" Then
Open File for input as #1
Close
FileOpen = False
End If
OpenFailed:
End Function
Dim TextBuffer as string
Open "File.txt" For Input as #1
TextBuffer = Input(LOF(1),#1)
Close
TextBuffer = UCase(TextBuffer)
Open "File.txt" For Output As #1
Print #1, TextBuffer
Close
Function FileOpen(File as string) As Boolean
On Error Goto OpenFailed
FileOpen = True
If Dir(File)<>"" Then
Dim FileNum As Integer
FileNum = FreeFile
Open File for Input as FileNum
Close
FileOpen = False
End If
OpenFailed:
End Function