So i need to write a program that will take a standardized junk mail with " #N# " for wherever a name would be in the letter. I have to use a void function for this as well as nested if statements inside a while loop for the get and put functions. I am having trouble however in that the name will be inputted once in the beginning of the void function which is working well, however when i attempt to plug it in for the #N# the output file ends up with just a _N_ (the "_'s " being spaces). Also the if loops are confusing me because i do not know how to use the peek function well.
notes:
-to make sure i had the right curly braces i named them, if #1 o being if, number 1, open. c then being close, as well as e1 being else 1 open and close.