I have a function in VB.net that has this code inside:

```
filename = TextBox5.Text
FileOpen(1, filename, OpenMode.Input)

```

There is an `OpenFileDialog1`, and when a file is chosen it puts the file path/name in `TextBox5`

When i click a button, it reads in the CSV file selected using `OpenFileDialog1`

I then have another function that has this code inside:

```
TextBox5.Text = "C:\file.csv"

```

In this second function, the `OpenFileDialog1` is not used as the function puts the file path/name in `TextBox5`

Its working fine when i choose the file and upload it using a `OpenFileDialog1` but when it puts the filename in `TextBox5` automatically (the second function), its not reading in the data