'"NUL" character is missing

I have got characters on notepad++ like below screenshot.

enter image description here

When I am copied and pasted same line in other new notepad++ file, "NUL" character was missing. Actually "NUL" character replaced by space(" ").

enter image description here

I want original line as it is. What I can do to get same line ?

Please help me to get the solution.

Why it is required: I am doing one project in C#. In that I am reading the content of file in a string format and creating new file with the same content. So after creation of new file, I notice same behavior that "NUL" character was missing. This problem is creating hinder in my project.



Solution 1:[1]

normally you dont copy/paste binary data like that. notepad++ offers you instead a function for handling that kind of data..

you find that under "edit"->"paste special"-> and there you can "copy bin content" and of course somewhere later "paste bin content" ?

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ΦXocę 웃 Пepeúpa ツ