I am trying understand why my "path" variable will not work for File/OpenText etc yet my "f" & ''fn" variables work together. I have the following code in above the FormLoad window.
VB Code:
Dim fn As String 'Filename that is being manipulated Dim f As String = ("C:\71151A2\") Dim path As String = f & fn
If i use
The code finds the file but if I use "path" in place of "f" & ''fn" it won't find it! Any clues as to why. I have declared the variable again in the sub procedure.VB Code:
fn = "PHONELISTS.TXT" 'File with phone directories sr = File.OpenText(f & fn)




Reply With Quote