I am trying to make a timer1 in VB open an do a streamread on any file that has a specific extension (example .txt), i have not been able to make it
Dim inputfile As String = "C:\1PROJECTS\INPUT\*.TXT"
Private Sub fileexisttimer_Tick(sender As Object, e As EventArgs) Handles fileexisttimer.Tick
If File.Exists(inputfile) Then
Dim i As Integer = 1
Dim sr1 As New StreamReader(inputfile)
but when the SR (streamreader starts, it will not recognize or open the file) ...
is there a way to do this?