CSCA08H3 Lecture : Introduction

42 views1 pages
19 Oct 2011
School
Course

Document Summary

Finished while loops with strings and began files (reading and writing) If the name already exists then open it for reading and compare it with the values you have just calculated. If the values are the same print a message that states you are all done. If the file already exists but the values are different print some warning messages and write the new values (erasing any previous data). If the file did not exist print the same message from (1) and write the data to the file. open_file(str, str) count_compound(file) write_file(file, list) Given a filename (str) and a mode (str), open a filename for mode and return the open file reader. If the mode is "w" and the fiel already exists print a message and open the file for reading instead. If the mode is "r" and the file does not exist return none.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions