User Profile

Collapse

Profile Sidebar

Collapse
jpmarkee
jpmarkee
Last Activity: Nov 5 '08, 11:01 PM
Joined: Nov 5 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jpmarkee
    replied to Trouble splitting on line breaks
    in .NET
    Ended up having to use:

    Dim Rows = AllData.Split(E nvironment.NewL ine.ToCharArray ())
    See more | Go to post

    Leave a comment:


  • jpmarkee
    started a topic Trouble splitting on line breaks
    in .NET

    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!
    See more | Go to post
No activity results to display
Show More
Working...