

Reading and Writing Files
Presentation
•
Computers
•
9th Grade
•
Easy
M Waters
Used 3+ times
FREE Resource
26 Slides • 7 Questions
1

2
Multiple Choice
What is a subroutine?
A set of instructions designed to perform a frequently used operation within a program.
A smaller version of a routine.
What you call your entire program.
A decision made within a program.
3
Multiple Choice
To start my subroutine I need to use:
fun
sta
def
go
4
5
6
7
8
9
10
11
12
13
14
Multiple Choice
A text file has the file extension of:
.txt
.doc
.text
15
16
17
18
19
20
Multiple Choice
The read() function:
Reads the file and then deletes the original.
Uses your speakers to read the .txt file to you.
stores the file in the memory.
Converts your file into a string.
21
22
23
24
Multiple Choice
The write mode does:
("w")
myFile = open(“TextFile.txt”, “w”)
Will take the contents of your file and write them to the console.
Will delete all of your files and replace them with a single new file.
Will create a new file. If a file already exists with the same file name it will overwrite the existing one.
Will create a new file and if there is an existing file with the same name it will re-name it.
25
26
27
28
Multiple Choice
The Append mode("a") does:
Will end the current file deleting it.
Creates a new file if none exists with the file name or opens an existing file if a file already exists with that name.
Will close all files and open a new one.
Will add this file to the end of the last file you had open.
29
30
31
32
Poll
I understand how to read, write and append a text file.
Fully agree.
Mostly agree.
Neither agree or disagree.
Slightly disagree.
Largely disagree.
33

Show answer
Auto Play
Slide 1 / 33
SLIDE
Similar Resources on Wayground
25 questions
Mental Health: Lesson 1
Presentation
•
9th Grade
24 questions
ZERO CONDITIONAL
Presentation
•
9th Grade
27 questions
User Input in Python
Presentation
•
9th Grade
28 questions
TIK9 PERANGKAT AKSES INTERNET
Presentation
•
9th Grade
27 questions
Ecology Review
Presentation
•
9th Grade
25 questions
The Reformation
Presentation
•
9th Grade
28 questions
Intro to Viruses
Presentation
•
9th Grade
28 questions
Cell Organelles
Presentation
•
9th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade