

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
Acceleration
Presentation
•
9th Grade
25 questions
Subject Verb Agreement
Presentation
•
9th Grade
25 questions
La equidad social en el acceso a las técnicas
Presentation
•
9th Grade
26 questions
Inference & Observation
Presentation
•
9th Grade
26 questions
Nomenclature
Presentation
•
9th Grade
26 questions
Applications of Quadratics
Presentation
•
9th Grade
26 questions
Describing Data
Presentation
•
9th Grade
26 questions
La resignificación y uso de los conocimientos.
Presentation
•
9th Grade
Popular Resources on Wayground
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
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
Discover more resources for Computers
16 questions
Module 1 Topic 2 Vocabulary Test
Quiz
•
9th - 12th Grade
17 questions
Chapter 1 Review
Quiz
•
9th Grade
20 questions
Google Slides Quiz
Quiz
•
9th Grade
30 questions
Python- if -ifelse-elif
Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
46 questions
Level 1 Google Sheets Midterm Flashcard
Flashcard
•
9th - 12th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats
Interactive video
•
6th - 10th Grade