Answered step by step
Verified Expert Solution
Question
1 Approved Answer
File I / O Program Create a program that will create a file named example.txt . This file path will be stored in the project
File IO Program
Create a program that will create a file named example.txt This file path will be stored in the project file set your directory Make sure that you avoid an IO Exception by protecting from creating the file every time the program runs. Add people names to the text file. Read from the file and print the names to the console. Remember to close and open files as necessary.
Submission:
Submit a PDF document that contains the screenshots of the output, and the code neatly formatted
Rubric
FIle IO Assignment Rubric
FIle IO Assignment Rubric
Criteria Ratings Pts
This criterion is linked to a Learning OutcomeSubmission
Ontime submission
pts
Full Marks
Submitted ontime
pts
No Marks
pts
This criterion is linked to a Learning OutcomeFile IO
The program created a file "example.txt
pts
Full Marks
File was created.
pts
No Marks
pts
This criterion is linked to a Learning OutcomeRead and Write
The program is able to read and write to the file as expected by the instructions.
pts
Full Marks
Error free. Program can write and read from the file.
pts
Partial Credit
Errors exist in either writing or reading to file.
pts
No Marks
pts
This criterion is linked to a Learning OutcomeException handling
Exceptions were used to handle any IO errors.
pts
Full Marks
Handles the IO exception. Ability to create the file when it doesn't exist, but does not overwrite or crash when file does exist.
pts
No Marks
pts
Total Points:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started