first things first, i searched this site extensively -- i may have missed the answer, so maybe someone could point be in the right direction.
i am trying to make a program that takes input from a user specified file, and "encrypts" it -- then fout'ing the encrypted version to the console, and to a pre-designated file. so far i have everything working, except for some reason -- i'm only able to get the first line of the encrypted text saved to the output file.
Try moving the open()ing of fout outside of the while loop so it is only opened once. You could also just make the loop say while(!fin) instead of checking it inside an if statement and breaking.