

Step 1 : Read a text file by line (line ends at '\n') and replace all instances of null character of that line with the string "NUL" using the String.Replace().

I apologise for any mistakes let me know I'll update it Also I wrote the code carefully but haven't ran it because I don't have the tools at the moment. It is just to give a hint about how you can do it. This can be done manually in a single pass. I'm clearly traversing a read string 2 times just to take benefit of already present methods. NOTE: This is by no means an efficient solution. You can show any custom style in your rich text editor too. While reading a file whenever notepad++ encounters the ASCII code of a null character then instead of displaying nothing it adds the string "NULL" to the UI setting the text background colour to black and text colour to white which is what you are seeing. It can display custom graphics so common in all modern text editors. So next time if notepad crashes while uploading then keep these steps in mind.Notepad++ is a rich text editor unlike your regular notepad. If it is blank then copy the content from local backup file( backup_ crashes.php) stored on desktop. Īfter creating backup ,you can restart your Notepad++ (GNU). Locate and copy the file crashes.php for backup copy the file on desktop. Now in Cache directory all your edited ftp files present as in live server. Notepad++ stores the cache data in roaming directory of system. %AppData%/Notepad++/plugins/config/NppFTP/Cache Here is simple shortcut to locate the local copy of the file. You are uploading file crashes.php, suddenly following screen appears on your window You can recover your file and its content. Luckily we have solution if this thing happens to you gain.

What if your notepad++ crash while you are uploading your file with ftp, and after restart notepad++ you see the file is empty!!!!!!!! I am sure it will make you crazy.This thing happens with me many time.
