- Код: Выделить всё
Dim myStreamR As IO.FileStream = New System.IO.FileStream(TextBox1.Text, IO.FileMode.Open, IO.FileAccess.Read)
Dim myStreamW As IO.FileStream = New System.IO.FileStream(TextBox2.Text, IO.FileMode.CreateNew, IO.FileAccess.Write)
Dim BufByte As Integer
Dim my As IO.StreamReader = New System.IO.StreamReader(TextBox1.Text)
While myStreamR.ReadByte <> -1
BufByte = myStreamR.ReadByte()
myStreamW.WriteByte(BufByte)
End While
myStreamR.Close()
myStreamW.Close()
Что здесь не так?