or this is the right method to read file?
Sub WriteToFile(sender As Object, e As EventArgs)
Dim fp As StreamReader
Try
fp = File.OpenText(Server.MapPath(".\Upload\") & "test.txt")
txtMyFile.Text = fp.ReadToEnd()
lblStatus.Text = "File Succesfully Read!"
fp.Close()
Catch err As Exception
lblStatus.Text = "File Read Failed. Reason is as follows
" & err.ToString()
Finally
End Try
End Sub