1. CS 101 - Introduction to Programming for Scientists and Engineers |
  2. Lectures |
  3. Files

Files

Lecture date: Wednesday, September 18, 2024

Topics

Today we will talk about files operations: how to open, read, and write file data.

Jupyter Files

  • Reading Files
  • Processing File Data
  • Writing Files

Example Data Files

  • data1.txt
  • data2-backup.txt
  • data2.txt
  • fear.txt
  • the wall.txt
CS 101
  • CS 101 Documentation
    • Getting Started
    • Syllabus
    • Schedule
    • TA Labs and Office Hours
    • Your Grades
    • Honors Project
    • Proficiency Exam
    • Succeeding in CS 101
  • Textbook
    • Looping
    • Calculating the Standard Deviation
    • Looping Patterns With For Loops
    • Mattox's Law of Computing
  • Lectures
    • Course Introduction
    • Python Types
    • Logic
    • Loops
    • Functions
    • Functions 2
    • Files
    • Dictionaries
    • Pseudocode
    • Debugging
    • Exceptions
    • Unit Testing
    • Libraries
    • Memory
    • Classes
    • Inheritance
    • Matplotlib
    • Numpy 1
    • Numpy 2
    • Pandas 1
    • (Canceled)
    • Pandas 2
    • Cool Problem 1
    • Cool Problem 2
    • Review Session
  • Quizzes
    • Quiz 1
    • Quiz 2
    • Quiz 3
    • Quiz 4
    • Quiz 5
    • Quiz 6

  •  
  •  

Built with by Hugo