A program needs to write the contents of a string variable named capital and the newline character

Question:

A program needs to write the contents of a string variable named capital and the newline character to the sequential access file associated with the outFile object. Write the code to accomplish this task.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: