Dim encfile As InputDialog
Dim fd As FileDialog
Dim readable As String
Dim inputcode1 As String
Dim inputc1 As Short
fd.FastScroll = True
fd.FilePath = File.DirInternal
fd.FileFilter = ".mnsec"
ret = fd.Show("Select A File:", "OK", "Cancel", "", Null)
If ret = -3 OR fd.ChosenName = "" Then
Return
End If
If File.Exists(File.DirInternal, fd.ChosenName) = False Then
Msgbox(fd.ChosenName & " does not exist.", "")
Return
End If
Dim TR As TextReader
Dim s As String
Dim ch As Char
Dim Number As Short
Dim Decrypt As String
Dim c As Cipher
TR.Initialize(File.OpenInput(File.DirInternal, fd.ChosenName))
s = TR.ReadLine
'add decryption and display file contents code here
encfile.Show("Enter Encryption Code","Code","OK","Canel","Negative",Null)
inputcode1 = encfile.Input
Dim Code As Short
inputc1 = encfile.Input
Code = inputc1
'Code = inputcode1
File.OpenInput(File.DirInternal,fd.ChosenName)
'Do Until s.Length
'Number = s
Decrypt = inputc1 + Code
'Loop
Msgbox("Incorrect Encryption Key. Access Denied!!","ACCESS DENIED!!!!")
'EditText1.Text = s
EditText1.Text = Decrypt
Msgbox(Decrypt,"Test")
'EditText1.Select(1, 0)
'MenuItem4.Enabled = False
'asndkajsndjkas
TR.Close