Results 1 to 5 of 5

Thread: ToString Help[resolved]

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Magiaus's Avatar
    Join Date
    Mar 2002
    Location
    swamp land
    Posts
    1,267

    ToString Help[resolved]

    Code:
    byte b;
    string s ="";
    
    for(int i = 0; i < Stream.Length; i++)
    {
        b = (byte)Stream.ReadByte();
        s += b.ToString("g");
    }
    I want ascci text to come out but all I get are numbers. Can anyone tell me about why and what to do. the Stream is from a text file that contains ascii text. I'm confused because I swear when I was using System.Console and reading it I used ToString("g").....
    Last edited by Magiaus; Apr 1st, 2004 at 08:08 AM.
    Magiaus

    If I helped give me some points.

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