I&C SCI 31 Lecture Notes - Lecture 7: File System

20 views2 pages

Document Summary

Some features allow let you solve new kinds of problems. eg. lists. Some let you do the same things more conveniently or efficiently for i in range(10): -- body of loop --- can be written as: i = 0 while i < 10: Today, files: really lets us do new things. They give us persistence (data sticks around. i. e after turning off machine data is still there). Files come in a lot of different formats: We"re going to deal with plain text files, . txt. Ascii is the standard correspondence between bits (binary digits) in memory and characters/keystrokes. Ascii table = what combination of bits correspond to which characters. Directory: a folder containing documents/files and other directories. File system: all the folders/directories on a disk drive or a computer. We are going to read for files in the same directory/folder as our. py file is. Three basic steps for file i/o (input/output): open the file.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents