Results 1 to 2 of 2

Thread: Data Format

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2007
    Posts
    37

    Data Format

    I am receiving data from a system via telnet. The data is coming through fine but the problem is that the data come with the return symbol and carat showing. Example below

    Enter a command and hit enter
    >

    Unfortunately it is not showing the enter key symbol with is a box. So I get "Data,box,box,carat"

    Can I get rid of the "Data,box,box,carat"

  2. #2
    Code Monkey wild_bill's Avatar
    Join Date
    Mar 2005
    Location
    Montana
    Posts
    2,993

    Re: Data Format

    I couple things will work
    I am assuming your data is in a string variable named data
    vb Code:
    1. data = data.Substring(0, data.Length - 3)
    vb Code:
    1. data.Replace(String.Concat(Environment.NewLine, ">"), String.Empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width