.NET Framework Developer Center > .NET Development Forums > .NET Base Class Library > Display text containing null (0x00) bytes.
Ask a questionAsk a question
 

AnswerDisplay text containing null (0x00) bytes.

  • Friday, November 06, 2009 2:07 PMAlbert_79 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I read a file containing some null characters
     
    string text =   sr.ReadToEnd()
    textbox.Text = text;

    The problem is that textbox displays the data until it reads the first 0x00.
    text.Length property has the value of file size.

    Does exists any other method than parsing the string to display the text?

Answers

All Replies