Hey to All on the Forum,
Just finished another VB project. Now I am moving on to something that will really challenge my skillset. I'm trying to encrypt and decrypt files. I have imported didisoft library for OpenPGP and now am getting a basic error when I'm referencing a file. Thought I would take the opportunity to ask how to do what I really want.
I get the following error:
System.IO.DirectoryNotFoundException was unhandled
HResult=-2147024893
Message=Could not find a part of the path 'C:\VB\Projects\Labs\Quiz2\CryptoKingdom\CryptoKingdom\bin\Debug\DataFiles\cryptomessage.txt'.
Obviously, the file is not there I am referencing; the code is right here:
I have another button on my form that I am pulling notepad up with. I prompt the user to create a file and save it. What I really want to do in my code is allow them to browse and choose the file they just created and have the method applied to that file. Can you help me or point me in the right direction?Code:pgp.EncryptFilePBE(New FileInfo("DataFiles\cryptomessage.txt"), _ "password", _ New FileInfo("DataFiles\OUTPUT.pgp"), _ asciiArmor)
Thanks folks,
sackerman.




Reply With Quote
