BuiltWithNOF
CIS-123 Week 12

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

    Hanly:
    Chapter 10 pages 405-434 (Numerical Methods)

Reading Assignment

    Internet:
    WWW.GRAPHICSMAGICIAN.COM

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