Ended up having to use:
Dim Rows = AllData.Split(E nvironment.NewL ine.ToCharArray ())
User Profile
Collapse
-
Trouble splitting on line breaks
I am trying to split a text file based on line breaks. The following code seems to be splitting on every 'r' or 'n' in the file not on line breaks. Could someone tell me what I am doing wrong,
Dim AllData = filestream.Read ToEnd()
Dim Rows = AllData.Split(" \r\n".ToCharArr ay())
Thanks!
No activity results to display
Show More
Leave a comment: