CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    5

    need to get an ascii code

    Hi

    I have a string as

    String str = "AT";

    i need to append control line feed character

    like i need to append ascii value to that string

    how would i do that in C#


    thanks
    Paresh

  2. #2
    Join Date
    Feb 2002
    Location
    Earth
    Posts
    15
    String str = "AT";
    i need to append control line feed character
    like i need to append ascii value to that string
    how would i do that in C#


    Same as plain old C here, \n = new line, \r = carriage return.
    So:
    String str = "AT\n";


    Buffer0verflow

  3. #3
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Re: need to get an ascii code

    Originally posted by PareshG
    Hi

    I have a string as

    String str = "AT";

    i need to append control line feed character

    like i need to append ascii value to that string

    how would i do that in C#


    thanks
    Paresh
    You also might want to check out System.Environment.NewLine
    Jared

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

Featured