Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.IO
- Public Async Function ReadNow() As Task
- Try
- Using sr As StreamReader = New StreamReader("binX\cmd.text")
- Dim line = Await sr.ReadToEndAsync()
- MsgBox(line)
- End Using
- Catch
- MsgBox("An error occured")
- End Try
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement