Cannot detect newline character in string downloaded from the internet.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alex21
    New Member
    • Oct 2008
    • 19

    Cannot detect newline character in string downloaded from the internet.

    The string is coming from this url, http://www.elixirwd.com.au/test.php

    The Username and Password for this url is,
    Username:user
    Password: password

    Now simply downloading the data using the WebClient classes DownloadString( ) method the below code will not work.

    Code:
    If FileContents.Contains(ControlChars.NewLine) Then
                MessageBox.Show("Has newline!")
            End If
    It will not detect a newline character. Why?

    Thanks Alex.
  • ssnaik84
    New Member
    • Aug 2009
    • 149

    #2
    try..

    Code:
    Environment.NewLine

    Comment

    • alex21
      New Member
      • Oct 2008
      • 19

      #3
      Nah same result... any other ideas?

      thanks

      Comment

      Working...