Trying to replace '\n' or its decimal equivalent of 10 after it has a decimal value added with its original value of '\n' or 10.
This way the newline character won't appear in the ciphertext as some other visible character.
while (!plainText.eof()){
string plainLine = "";
getline(plainText, plainLine);
int lineLength = plainLine.length();
for (int i=0; i<=lineLength; i++){
int decimalValue[lineLength];
char cipherLine[lineLength];
decimalValue[i] = (int)plainLine[i] + shiftValue;
cipherLine[i] = (char)decimalValue[i];
if (plainLine[i] == '\n')
cipherLine[i] = '\n';
cipherText << cipherLine[i];
}
cipherText << '\n';
}