Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 371913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:09:36+00:00 2026-05-12T14:09:36+00:00

I have a requirement to create a sysDesk log file. In this requirement I

  • 0

I have a requirement to create a sysDesk log file. In this requirement I am supposed to create an XML file, that in certain places between the elements contains a binary null character.

Can someone please explain to me, firstly what is a binary null character, and how can I write one to a text file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T14:09:37+00:00Added an answer on May 12, 2026 at 2:09 pm

    I suspect it means Unicode U+0000. However, that’s not a valid character in an XML file… you should see if you can get a very clear specification of the file format to work out what’s actually required. Sample files would also be useful 🙂

    Comments are failing me at the moment, so to address a couple of other answers:

    • It’s not a string termination character in C#, as C# doesn’t use null-terminated strings. In fact, all .NET strings are null-terminated for the sake of interop, but more importantly the length is stored independently. In particular, a C# string can entirely validly include a null character without terminating it:

      string embeddedNull = "a\0b";
      Console.WriteLine(embeddedNull.Length); // Prints 3
      
    • The method given by rwmnau for getting a null character or string is very inefficient for something simple. Better would be:

      string justNullString = "\0";
      char justNullChar = '\0';
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a requirement to create XML that looks like this: <record id=100000000000000000 type=Message>
I have a requirement to create an application that will open up about 10
I have a requirement to create a cross platform application that launches a web
I have a requirement to create a report that is killing the processor and
I have a requirement to create some xml structs (to borrow a C-phrase) in
I have a requirement to create internationalization with regular text files (perhaps simple xml).
I have a requirement which says I have to create only once class file
I have one requirement in which I must create a log in page such
I have a requirement to create a simple database in Access to collect some
Normally I create web application projects and use code-behind, but I have a requirement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.