Question: IN C# , no top level statements: Objective: Create a simple C# console application that reads a text file asynchronously and handles exceptions gracefully. Requirements:
IN C# no top level statements: Objective: Create a simple C# console application that reads a text file asynchronously and handles exceptions gracefully.
Requirements:
Use StreamReader to asynchronously read a text file. Pick any text file you want. Ensure it has enough lines around is a good base line.
Use the command line to prompt the user to specify a file Path and Location of the text file
Once given print the contents to the terminal
Implement exception handling to manage potential read errors.
Use the await and async keywords
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
