Output Streams in C++ - GitHub Pages

嚜澹ile Input / Output Streams in C++

CS 16: Solving Problems with Computers I

Lecture #9

Ziad Matni

Dept. of Computer Science, UCSB

Announcements

? Midterm Exam grades out! ?

每 If you want to see your exams, visit your lab TA during his/her office hours

每 You will only be able to view exams in their (or my) office

每 You will not be allowed to take the exams out of the office

11/1/2017

Matni, CS16, Fa17

2

Lecture Outline

? I/O Data Streams and File I/O

? An introduction to Objects and Member Functions

? Handling File I/O Errors

11/1/2017

Matni, CS16, Fa17

4

File I/O

? Read (input) from a file

每 Usually done from beginning to the end of file (not always)

? No backing up to read something again (but you can start over)

? Similar to how it*s done from the keyboard

? Write (output) to a file

每 Usually done from beginning to end of file (not always)

? No backing up to write something again (but you can start over)

? Similar to how it*s done to the screen

11/1/2017

Matni, CS16, Fa17

5

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download