CMPT 127 Lecture Notes - Lecture 26: Json, Standard Streams, Parsing

120 views10 pages

Document Summary

Lab 6: file i/o external data representation; fopen(), fclose(), fread() and fwrite(); struct practice. Setup: add the new directory "6" to the root directory of your working copy and repository. This will be the working directory for all the instructions below. A program"s working memory of stack and heap data structures only exists while the program is running. To store data between runs, and to capture output, we can use the filesystem. The filesystem is a service provided by the os that provides files to your programs. A file is like a named array of bytes, and once created a file will persist until deleted, even when the computer is turned off. You are familiar with files: text files like c sourcecode; sound files like mp3s; executable files like your compiled programs. At the filesystem abstraction level, these are all the same thing: just a contiguous sequence of bytes. The interpretation of these bytes is up to your program.

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