Summary Files Commits Branches @commit @diff @stats
path: root / Year 1 / Object-oriented Programming / Solutions Sem. 03 / ex4 / File.h
diff options
context:
space:
mode:
Commita6fb61db10a93801065d34d19fb6d7166511e58d (patch)
Author
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-03-31 09:37:42 +0300
Committer
 Syndamia <kamen.d.mladenov@protonmail.com>
2022-03-31 09:37:42 +0300
Filesec3db1d6147713c184c9ba23fd9dd866c599edcc /Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/File.h
uni-projects-a6fb61db10a93801065d34d19fb6d7166511e58d.tar
uni-projects-a6fb61db10a93801065d34d19fb6d7166511e58d.tar.gz
uni-projects-a6fb61db10a93801065d34d19fb6d7166511e58d.zip
Parent4a530b9ae9f50ce0e117931933db3a11285f29af (diff)
Made naming and slight formatting adjustments
1 files changed, 0 insertions, 27 deletions
-rw-r--r--Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/File.h27
diff --git a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/File.h b/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/File.h
deleted file mode 100644
index 753e734..0000000
--- a/Year 1/Object-oriented Programming/Solutions Sem. 03/ex4/File.h
+++ /dev/null
@@ -1,27 +0,0 @@
-#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;
-};