PT1420

Introduction to Programming

Week 10 (August 15, 2016)
Unit 10: Files

Learning Objective
  • Write programs that can read data from and write data to files.
Learning Outcomes
  1. Describe the different types of files and file access methods.
  2. Write programs to read data from a file.
  3. Write programs to write data to a file.
Key Concepts
  • File types
  • File access methods
  • Delimiters
  • EOF marker
  • File input process
  • File output process
Assigned Reading
  • Gaddis, Chapter 10, “Files,” pages 361-383.
Keywords
  • File input and output
  • ASCII encoded files
  • Unicode encoded files
  • Sequential access files
  • Direct access files
  • File extensions
  • Delimiters
  • EOF marker
  • Read mode
  • Write mode
  • Append mode
  • StreamWriter object
  • StreamReader object
  • Control break logic
Assignments and Study Materials
  • Unit 10 Lecture Slides
  • Unit 10 Assignment 1: Homework
  • Unit 10 Research Assignment 1: Exploring How to Write Data to a Binary or “Read-Only” File
  • Unit 10 Lab Worksheet
  • Unit 10 Lab 10.1: File Access and Visual Basic
  • Unit 10 Lab 10.2: File Access and Nested Loops
Questions and Feedback
Use the form below to ask questions or provide feedback about the concepts covered during Week 10's session of class:

Your browser is out-of-date!

You need to update your browser to view Foliotek correctly. Update my browser now

×