digitaldrew
Well-known member
- Joined
- Nov 10, 2012
- Messages
- 167
- Programming Experience
- Beginner
Can the WebClient class be used to read a txt directly into an array? If so, how is it done?
Dim lines = myWebClient.DownloadString(url).Split({ControlChars.CrLf, ControlChars.Lf}, StringSplitOptions.None)That will split the text into lines whether it uses carriage returns and line feeds for line breaks, just line feeds or a combination of both.