Is there anyway to read a Open a password protected text file in C# code.
It is not an encrypted file but a password protected text file.
Is there anyway to read a Open a password protected text file in C# code.
It is not an encrypted file but a password protected text file.
I had no trouble reproducing that dialog:
The dialog styling is a little different, this came from a Windows 8.1 machine. But it is the exact same one as yours. It is displayed when you open a .zip archive that's password protected with Windows Explorer. Which displays the prompt when you double-click a file inside the archive.
You extract files from a .zip archive in your own code with one of the many Zip libraries. Popular ones are SharpZiplib, DotNetZip and 7-Zip. They all support extracting files that are password protected, covered by this question.