Parameters
- file
- The file associated with the buffer
- mode
- "r" for read, "rw" or "rw+" for read and write mode ("rw+" opens the file for update whereas "rw" removes it before. So the 2 modes are different only if the file already exists).
- bufferSize
- The number of bytes to buffer