Create a fi le that contains your favorite movie quote. Use a text editor such as Notepad, and save the fi le as Quote.txt. Copy the fi le contents and paste them into a word-processing program such as Word. Save the fi le as Quote.docx. Write an application that displays the sizes of the two fi les as well as the ratio of their sizes to each other. To discover a fi le’s size, you can create a System.IO.FileInfo object using a 704 CHAPTER 14 Files and Streams Apago PDF Enhancer statement such as the following, where FILE_NAME is a string that contains the name of the fi le: FileInfo wordInfo = new FileInfo(FILE_NAME); Save the fi le as FileComparison.cs
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here