Ok well if anyone cares I finally got it to work, thanks to someone at the beginning who told me to use read... anyway I attached the encrypt and decrypt programs, if anyone wants to see them.
Actually, I now noticed that after decrypting the file, it works just fine, and the file looks okay at first glance, but there's actually a bunch of ` things in it. For example, I encrypted a random file on my hard drive (which happens to be a Java readme file- go figure) and this is what happens (it's not code, but it's easier to read):
My code is attached to this post, did I do something wrong? I know somebody mentioning something about my variable "k" but I don't know what I was supposed to do. Can anyone help me?Code:The Java 2 SDK software includes tools useful for developin`g and testin`g pro`grams written in the Java pro`grammin`g lan`gua`ge and runnin`g on the Java platform. These tools are desi`gned to be used from the command line. Except for appletviewer, these tools do not provide a `graphical user interface.