CISC 101 Chapter Notes - Chapter 6: Current Contents, Microsoft Word, Empty String

28 views30 pages

Document Summary

Introduction to file input and output: the programs you have written so far require the user to reenter data each time the program runs, because data stored in ram (referenced by variables) disappears once the program stops running. Image editors- used to draw graphics and edit images. In general, there are two types of files: text and binary: a text file contains data that has been encoded as text, using a scheme such as ascii or. In this book we will use sequential access files. In the program, a variable references the file object: this variable is used to carry out any operations that are performed on the file. If the program is running and it executes the following statement, the file test. txt is created in the same folder: If you want to open a file in a different location, you can specify a path as well as a filename in the argument that you pass to the open function.

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