Ch12_Questions

Ch12_Questions - C# Programming: From Problem Analysis to...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
C# Programming: From Problem Analysis to Program Design , 2nd edition ISBN 1423901460 Chapter 12 1. a. calling the File.Exists( ) method 2. d. StreamReader 3. d. StreamWriter 4. b. call Close( ) method 5. d. has only static members so to call one of its methods, you must use the class name 6. e. System.IO 7. e. both File and FileInfo 8. c. InvalidDataFileException 9. b. The DirectoryInfo class also has public properties 10 d. add true as the 2nd argument (Append) to the StreamWriter class 11. b. Stream 12. d. C:\bin\debug 13. c. @"C:\CSharpProjects\Ch10\WorkDirectory" 14. d. ReadLine( ) Doyle: C#, 2nd edition ISBN 1423901460    Page 1-1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
a. File 16. e. all of the above 17. d. TextReader 18. a. Write7BitEncodedInt( ) 19. b. ReadDecimal( ) 20. d. ReadInt( ) 21. StreamWriter fil = new StreamWriter(@"C:\CSharpProjects\WorkDirectory"); 22. public void StoreData( ) { for(int i = 10; i < 50; i++) fil.Write("{0} | ", i); } 23. public void RetrieveData( )
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/24/2011 for the course CIS 170 taught by Professor Michaelfreeman during the Spring '10 term at DeVry Chicago.

Page1 / 7

Ch12_Questions - C# Programming: From Problem Analysis to...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online