Project 3: File System Decoder

  1. Open the image file in binary mode.
    For example, when using fopen() in C/C++, use mode "rb". If using ifstream class in C++, make sure to use ios::binary mode.
    NOTE: Since you are required to read the image file from stdin, use read() should be enough without opening the stdin.
  2. Forget about page-in/out, read the whole file into memory first!
  3. File analysis: