First of all, sorry for my poor English.
I'm working on my .NET project and I need to get a large text from my server to textbox. Problem is that my text files from the server have about 50000-100000 lines (about 20mb-50mb) in single file and every time when I try to load it my program freeze and then crashes.
Dim LargeText As String = "https://example.com/files/LargeText.txt"
Dim reader As StreamReader = New StreamReader(client.OpenRead(LargeText))
TextBox1.Text = reader.ReadToEnd
This is the code I use for reading text to textbox. I guess there is a way to load it in the background or something else, I don't know.