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.
rtnFileID = FreeFile
Open "C:\My Documents\Notepad File.txt" For Binary Access Read As rtnFileID
Txt$ = Space$(LOF(rtnFileID))
Get #rtnFileID, 1, Txt$
Close rtnFileID
' Txt$ will now contain the contents of the file specified
Dim strTextLine As String
Open "C:\Temp\MyTextFile.txt" For Input As #1
Do While Not EOF(1) [green]' Loop until end of file.[/green]
Line Input #1, strTextLine [green]' Read line into variable.[/green]
[green]'do whatever you want with strTextLine here[/green]
Loop
Close #1
Public Sub OpenDocument(strDocPath As String)
Dim G As Long
G = Shell("RUNDLL32.EXE URL.DLL,FileProtocolHandler " & strDocPath, vbNormalFocus)
End Sub
Private Sub Command1_Click()
Dim f as integer
f = FreeFile
Open "c:\SomeFolder\MyFile.txt" For Input As f
Text1.Text = Input$(LOF(f), f)
Close f
End Sub
To my big surprise I did not see the file beta on c but found it on c:\Users\G.Worni\AppData\Local\VirtualStore
How it got there...no idea.