fixed merge
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user