14fc0c64adc72ab8173cd89771a240f8429a0e5c
[ecparse.git] / FileReaderInput.cpp
1 /**
2  * © 2008 by David Roden <droden@gmail.com>
3  */
4
5 #include "FileReaderInput.h"
6
7 FileReaderInput::FileReaderInput(FILE *file) {
8         this->file = file;
9 }
10
11 FileReaderInput::~FileReaderInput() {
12         fclose(file);
13 }
14
15 int FileReaderInput::read(void* buffer, size_t length) {
16         size_t readBytes;
17
18         readBytes = fread(buffer, 1, length, file);
19         return 0;
20 }