Exercise 6 - File Writing Create a new class called Filewriting. In this class, implement a program that reads strings from the user and writes them to an output file called userStrings.txt. Terminate processing when the user enters the string "DONE". Do not write the sentinel string to the output file.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter8: I/o Streams And Data Files
Section8.4: File Streams As Function Arguments
Problem 3E
icon
Related questions
Question
Use java.
Exercise 6 - File Writing
Create a new class called Filewriting. In this class, implement a program that reads strings
from the user and writes them to an output file called userStrings.txt. Terminate
processing when the user enters the string "DONE". Do not write the sentinel string to the
output file.
Transcribed Image Text:Exercise 6 - File Writing Create a new class called Filewriting. In this class, implement a program that reads strings from the user and writes them to an output file called userStrings.txt. Terminate processing when the user enters the string "DONE". Do not write the sentinel string to the output file.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr