Evan Anderson
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
- Describe the different types of files and file access methods.
- Write programs to read data from a file.
- 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: