blob: 753e73472305f63c88acfaacf32f65604cba4ff5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include <iostream>
#include <fstream>
#include <cstring>
#include "Bytex.h"
class File {
Bytex* fileBuffer;
size_t count;
size_t length;
char* originalFilePath; // There are no actual restrictions on path lengths in Linux
char bytexToReadableChar(Bytex bytex) const;
void resizeBuffer();
public:
File(const char* filePath);
~File();
void viewFile() const;
void change(int index, Bytex bytex);
void add(Bytex bytex);
void remove();
void save() const;
void saveAs(const char* filePath) const;
};
|