I am trying to read a file from a network drive I have setup on another computer. I have the following code on a button.
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Using sr As New System.IO.StreamReader("Z:\Files\MachUpdate.txt")
While Not sr.EndOfStream
MachUpdate.Add(sr.ReadLine())
End While
End Using
RichTextBox2.Text = MachUpdate(1)
I am quite certain something is wrong with the path Z:\Files\MachUpdate.txt because I have the same file on the computer running advanced HMI c:\Files\MachUpdate.txt and it too bombs out with system I/O file not found. Any idea what my path should be?
Thanks,
Dave