Hey guys, back again. I have a text file called "text.txt" which contains a number I want to use as a variable. Im having trouble using File.Open. Can you help with an example, heres a snippet of my code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim path As String = "C: extfile.txt"
Dim rate As FileStream
rate = File.Open(path, FileMode.Open, FileAccess.Read)
Form6.txtRate.Text = rate()
Any help appreciated. Thankyou.