

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
26 questions
Describing Data
Presentation
•
9th Grade
26 questions
La resignificación y uso de los conocimientos.
Presentation
•
9th Grade
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
Applications of Quadratics
Presentation
•
9th Grade
26 questions
Nomenclature
Presentation
•
9th Grade
Popular Resources on Wayground
10 questions
HCS SCI 03 Summer School Review 4
Quiz
•
3rd Grade
11 questions
HSMS - Standard Response Protocol
Quiz
•
6th - 8th Grade
16 questions
1.1-1.2 Quiz Review
Quiz
•
9th - 12th Grade
12 questions
Exponent Expressions
Quiz
•
6th Grade
20 questions
Adding and Subtracting Integers
Quiz
•
6th - 7th Grade
11 questions
Northeast States
Quiz
•
3rd - 4th Grade
10 questions
Characterization
Quiz
•
3rd - 7th Grade
10 questions
Common Denominators
Quiz
•
5th Grade