fixed merge

This commit is contained in:
2023-12-03 18:02:15 +03:00
6 changed files with 110 additions and 79 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#pragma once
#include "String.h"
#include "Text.h"
#include "Text.h"
class File {
FILE* ptr;
public:
@@ -15,6 +16,9 @@ public:
fprintf(ptr, "%s\n", text.getCharArray());
}
~File() {
Close();
}
void Close() {
if (ptr != NULL) {
fclose(ptr);
ptr = NULL;