C# programming Chapter 14 question 1 Any help with input, output and comments of any sort would be very helpful.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
C# programming Chapter 14 question 1 Any help with input, output and comments of any sort would be very helpful.
]
CHAPTER 14 Files and Streams
Exercises
1.
Programming Exercises
enter directory names until the user types end. If the directory name exists, display
a list of the files in it; otherwise, display a message indicating the directory does not
exist. Create as many test directories and files as necessary to test your program.
2. Create a program named FileComparison that compares two files. First, use a
text editor such as Notepad to save your favorite movie quote. Next, copy the
file contents, and paste them into a word-processing program such as Word.
Then, write the file-comparison application that displays the sizes of the two files
as well as the ratio of their sizes to each other. To discover a file's size, you can
create a System.IO.FileInfo object using statements such as the following,
where FILE_NAME is a string that contains the name of the file, and size has been
declared as an integer:
FileInfo fileInfo= new FileInfo (FILE_NAME);
size = fileInfo.Length;
3. Using Visual Studio, create a project named ShowFileInfo that contains a Form like
the one in Figure 14-38. Specify a directory on your system, and when the Form loads,
list the files the directory contains in a ListBox Allow the user to click a file name,
and then display the file's creation date and time. (Each time the user checks a new
filename, display its creation date in place of the original selection.) Create as many
files as necessary to test your program.
File Info
Select a file:
CACSharp Test Files First File bd
CACSharp Test Files Second File txt
CACSharp Test Files\Third File bd
File information:
Creation time 2/25/2017 9:09:13 AM
☐
X
4.
a.
C
C
b.
C.
5.
Transcribed Image Text:] CHAPTER 14 Files and Streams Exercises 1. Programming Exercises enter directory names until the user types end. If the directory name exists, display a list of the files in it; otherwise, display a message indicating the directory does not exist. Create as many test directories and files as necessary to test your program. 2. Create a program named FileComparison that compares two files. First, use a text editor such as Notepad to save your favorite movie quote. Next, copy the file contents, and paste them into a word-processing program such as Word. Then, write the file-comparison application that displays the sizes of the two files as well as the ratio of their sizes to each other. To discover a file's size, you can create a System.IO.FileInfo object using statements such as the following, where FILE_NAME is a string that contains the name of the file, and size has been declared as an integer: FileInfo fileInfo= new FileInfo (FILE_NAME); size = fileInfo.Length; 3. Using Visual Studio, create a project named ShowFileInfo that contains a Form like the one in Figure 14-38. Specify a directory on your system, and when the Form loads, list the files the directory contains in a ListBox Allow the user to click a file name, and then display the file's creation date and time. (Each time the user checks a new filename, display its creation date in place of the original selection.) Create as many files as necessary to test your program. File Info Select a file: CACSharp Test Files First File bd CACSharp Test Files Second File txt CACSharp Test Files\Third File bd File information: Creation time 2/25/2017 9:09:13 AM ☐ X 4. a. C C b. C. 5.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY