Thank you for your reply. Sorry, I should have been more clear. The file is opened in the command prompt line with the feed in symbol " < ".
For example, from my first post.
The user would put in: addcyph -e keyfile < clear > code
"addcyph" would be my program
"-e" would = to encode the file that was streamed in or it could be "-d" to decode
"<" = to stream in the file
"clear" = is the plaintext to encode
">" = output the file
"code" = the outputted encoded text file.
I have a file called "keyfile" which is filled with random characters to be used as the "keypad" or "keyfile" in this type of program and the file.txt is stored in my debug\bin folder for use. It matches it self with the streamed in file to encode it or decode it using the One time pad algorithm which could be found here: