aboutsummaryrefslogtreecommitdiff
path: root/include/filehandler.h
blob: ac8fa887e49fdf5b966e32beb91531aba8aea729 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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