Ok, what are you moving to the left of what? There's really no need to move anything. Once you've read in a char you can do:
inside your char-getting-loop. Don't try to make things too complicated But I'm intruiged now as to which encryption algorithm you're using that involves a cube...!Code:plain_text[i] = read_char; i++;
QuantumPete