السلام عليكم
أنشأت FileStream و StreamReader للقراءة من ملف نصي وأريد التعامل مع جزء من النص أو سطر معين كالتالي :
Dim hfs As IO.FileStream
Dim hfsr As IO.StreamReader
hfs = New FileStream(Application.StartupPath & "/filename", FileMode.Open)
hfsr = New StreamReader(hfs)
'read line and compare it with textbox
While hfsr.Read
If hfsr.ReadLine = TextBox1.Text Then MsgBox("found")
End Whileولكن البرنامج يتوقف ولا يستجيب فرجاء ما هي المشكله وما حلها ؟؟؟