aboutsummaryrefslogtreecommitdiff
path: root/include/filehandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/filehandler.h')
-rw-r--r--include/filehandler.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/filehandler.h b/include/filehandler.h
new file mode 100644
index 0000000..ac8fa88
--- /dev/null
+++ b/include/filehandler.h
@@ -0,0 +1,24 @@
+#ifndef __FILEHANDLER_H
+#define __FILEHANDLER_H
+
+#include <stdbool.h>
+#include <stdio.h>
+
+class Filehandler
+{
+private:
+ FILE *f;
+ char *path;
+ char *buffer;
+
+private:
+ unsigned int size(void);
+
+public:
+ Filehandler(char *path);
+ bool open(void);
+ char *read(void);
+ void close(void);
+};
+
+#endif