BuiltWithNOF
Week 10

Streams and File I/O

Topics

  • open()
  • fail()
  • close()
  • eof()
  • Character I/O
    get(), put()
  • Character functions <cctype>
    toupper(), tolower(), isupper(), islower(), isalpha, isdigit(), isspace()

At the end of the week you should be able to:

  • Create a stream
  • Connect a stream to a file on the computer disk
  • Read a list of integers from a file on the computer disk and compute their sum
  • Read the characters one at a time from one file and place them in another file
  • Close a stream

Reading Assignment

    Savitch:
    Sections 7.1 - 7.2 pages 374-404 (Arrays) [7th 376 - 407][6th 378-409]

    Pirsig:
    Pages 322 - 324 (Quality Destroys Objectivity) [Harper 460-461]

    “...any further improvement of the world will be done by individuals making Quality decisions and that’s all.”

Take-Home Programming Assignment

Reading Assignment

    Internet:
    WWW.GRAPHICSMAGICIAN.COM

[Home] [About Me] [Office Hours] [CIS 098] [CIS 110] [CIS 114] [CIS 121] [Online Video] [Books] [Week 1] [Week 2] [Week 3] [Week 4] [Week 5] [Week 6] [Week 7] [Week 8] [Week 9] [Week 10] [Week 11] [Week 12] [Week 13] [Week 14] [Week 15] [Week 16] [CIS 123] [CIS 127] [CIS 170] [CIS 207] [CIS 226] [CIS 227] [CIS 230] [CIS 262] [COL 101]