How would you replace the n character in a file with some xyz?

How would you replace the n character in a file with some xyz?

I just noticed that your questions look like homework questions !!!

post1
post2
post3
post4

and this post as well.

This forum rules against answering homework/school questions.

Vino

I have to agree. Please read our rules.