CSC209H1 Lecture Notes - Lecture 5: Data File, Standard Streams, Scanf Format String

54 views19 pages
School
Course
Professor

Document Summary

Csc209 week 5: streams, files, i/o, and compiling. In addition to reading from the keyboard we may want to read from the disk: ex. Read from a webpage for data to store in a spreadsheet file: c"s i(cid:374)put a(cid:374)d output files read fro(cid:373) streams. It is possible to change, or _redirect_, a stream when a program is executed: standard input refers to the keyboard by default, can change this using input redirection. Input redirection instead of retrieving standard input from the keyboard, redirecting to a file: use readint to read from file by using the less than symbol (

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions