Dim fileToCopy, NewCopy, txtFiles, inpFiles As String
Dim sr As New StringReader(Te xtBox3.Text)
fileToCopy = ("c:\" + inpFiles + ".txt")
NewCopy = ("C:\jj.txt" )
sr = New System.IO.Strin gReader(TextBox 3.Text)
inpFiles = sr.ReadLine()
Do
txtFiles += inpFiles & CrLf
inpFiles = sr.ReadLine()
MsgBox(inpFiles )
If System.IO.File. Exists(fileToCo py) = True Then
System.IO.File. Copy(fileToCopy , NewCopy)
MsgBox("We are Done You Have Won")
End If
Loop Until inpFiles = Nothing
sr.Close()
for some reason the stringreader will not read the line of input from the textbox.
what have i done Wrong????
thanks
Dim sr As New StringReader(Te xtBox3.Text)
fileToCopy = ("c:\" + inpFiles + ".txt")
NewCopy = ("C:\jj.txt" )
sr = New System.IO.Strin gReader(TextBox 3.Text)
inpFiles = sr.ReadLine()
Do
txtFiles += inpFiles & CrLf
inpFiles = sr.ReadLine()
MsgBox(inpFiles )
If System.IO.File. Exists(fileToCo py) = True Then
System.IO.File. Copy(fileToCopy , NewCopy)
MsgBox("We are Done You Have Won")
End If
Loop Until inpFiles = Nothing
sr.Close()
for some reason the stringreader will not read the line of input from the textbox.
what have i done Wrong????
thanks
Comment