CSC209H1 Chapter 5: DISCOVER Low-Level IO - Part 1 of 1

44 views14 pages
7 Feb 2019
School
Course
Professor

Document Summary

Discover: low-level i/o - part 1 of 1. Low level i/o video 1: introducing binary files. The reason that we use a binary file format is to store info that cannot be stored as a human readable txt file (e. g. image file, music file) Binary files can have all kinds of extensions or they may not have an extension. Note that the second option is also correct. Low level i/o video 2: writing binary files. Ptr: the ptr that refers to the data that we want to write to the file. Can be a starting add of an array. Can also be a ptr to an individual var. Size: the size of each element that we want to write to the file. Nmemb: num of elements that we want to write to the file. For an individual var nmemb will be 1. For an arr will be the num of elements in the arr.

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