Hi everyone,
I set up two little functions that do enscryption and I want to incorporate those two functions into commandLine argument of the form <prog> file1.txt > file2.txt .
each one of the two functions gets 4 letter words and return 4 letter word, since the only way that I know is to read characters from a file is one character at time. can anyone suggest a way that I can pass these two functions 4 letter at a time or any other way that I can adapt these two functions.
the two functions look like this;
/* the loop is from the main function */
while(file.get(fp) == NULL)
p-box( *first_msg, * return_message); /* function 1 * /
s-box( *return_message, *another_ return_message); /* function2
print here (another_returm_message)