2 simple questions, please help!
hi, not been programming for long and could do with a little help.
EncryptFile(Text1.Text, Text1.Text & ".fxt")
the first text1.text is the input file and the 2nd is the output file, so C:\example.txt gets encrypted and then saved as C:\example.txt.fxt that part works fine however its when i want to decrypt!
DecryptFile(text1.text, text1.text)
again the first text1.text is input the second output, what i want to know is how do i now remove that ".fxt" i added earlier.
assuming its something like
DecryptFile (text1.text, text1.text - ".fxt")
please help!
The second thing wos i want to detect a file extension.
an example would be once i open the file path to a text box using commondialog i want to be able to detect the extension of that file so i can display something in a label caption. eg
if text2.text = "*.fxt" then
label1.caption = "Encryption method used etc etc"
i know the above isn't how you do it, but hopefully someone can tell me how!
sorry i know these are dumb questions, still learning.
thanx in advance