CSE 1010 Lecture Notes - Lecture 15: Empty String, Gnu Readline, Mkdir

56 views3 pages
jadetortoise401 and 55 others unlocked
CSE 1010 Full Course Notes
84
CSE 1010 Full Course Notes
Verified Note
84 documents

Document Summary

A collection of data or information that is stored in secondary device. Used for storing data which can be processed by a program. Binary files (contain non-ascii, audio, video, photos, etc) open() Before you can read or write a file you need to open it. W" is the mode, determines the mode in which the file has to be opened. Myfile" is a string containing the file name. File pointer is placed at the beginning of the file. Creates a new file for reading and writing if it does not exist. Creates a new file for writing if it does not exist. File pointer is placed at the end of the file in append mode if it exists. Creates a new file for writing and reading if it does not exist. Fileobject. close - returns true if file is closed, false if file is open. After, no more writing can be done without opening again.

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