Write a C++ program that reads text from a file and encrypts the file by adding an encryption factor (EF) to the ASCII value of each character.