Class Notes (836,373)
Canada (509,756)
CMPT 165 (21)
Lecture

CMPT165-Files.docx

3 Pages
107 Views
Unlock Document

Department
Computing Science
Course
CMPT 165
Professor
Colin Stewart
Semester
Winter

Description
FilesFiles are used to store data when a program or script is not running When data is stored in a file the data will remain there until we need it again There are two main actions involved with files reading and writing Reading a file means taking data out of a file Writing means putting data into a fileWriting We start with writing because writing always comes before reading That is we have to put data into a file before we can take it out You need one formscript that gets data from the user and writes it to a file Then you need a second formscript that retrieves the data reads the file and displays it to the user Here is a script personalInfopy You must download filepyc to make this script work import cgi formcgiFieldStorage from file importThis is new print Contenttype
More Less

Related notes for CMPT 165

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit