C/C++ reference: http://www.cppreference.com/

Reference for file I/O

Laboratory 3: Reading & Writing to Text and Binary files and Bitwise Manipulation of a Byte

        In this lab, you will learn how to read and write in C++ using different methods, and observe the difference between writing into a file in  text fmode and in binary mode.

        You will also learn how to manipulate bits of a byte (unsigned char), needed in A1. YOUR TASK

Programs for bit manipulation and I/O operations:


We will not provide solutions for lab3compress, as it is part of A1.