projects
/
ecparse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add method to read hash tag
[ecparse.git]
/
FileReaderInput.cpp
diff --git
a/FileReaderInput.cpp
b/FileReaderInput.cpp
index
14fc0c6
..
0492233
100644
(file)
--- a/
FileReaderInput.cpp
+++ b/
FileReaderInput.cpp
@@
-12,9
+12,10
@@
FileReaderInput::~FileReaderInput() {
fclose(file);
}
fclose(file);
}
-int FileReaderInput::read(void* buffer, size_t length) {
- size_t readBytes;
+size_t FileReaderInput::read(void* buffer, size_t length) {
+ return fread(buffer, 1, length, file);
+}
- readBytes = fread(buffer, 1, length, file);
- return
0
;
+bool FileReaderInput::isEOF() {
+ return
feof(file)
;
}
}