aboutsummaryrefslogtreecommitdiff
path: root/include/filehandler.h
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-06-08 13:33:58 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-06-08 13:33:58 +0530
commit1de0b57e396d1964aba2c8ddc663bd55d01f5058 (patch)
treeccc6fe94ca738136e3da27cd4ff0fbfd230c3ee7 /include/filehandler.h
parent25d651a1a4100be0d7b148030d8e3bca6996f53b (diff)
filehandler: init
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