Removed NuakeUI FileSystem

This commit is contained in:
antopilo
2024-09-11 22:57:17 -04:00
parent 7ee76a129e
commit 8b6991822f
2 changed files with 0 additions and 45 deletions

View File

@@ -1,34 +0,0 @@
#include "FileSystem.h"
#include <fstream>
#include <filesystem>
namespace NuakeUI
{
namespace FileSystem
{
bool FileExists(const std::string& path)
{
return std::filesystem::exists(path);
}
std::string ReadFile(const std::string& path)
{
if (!FileExists(path))
return "";
std::string fileContent;
std::string currentLine;
std::ifstream file(path);
while (getline(file, currentLine))
{
fileContent += currentLine + "\n";
}
file.close();
return fileContent;
}
}
}

View File

@@ -1,11 +0,0 @@
#pragma once
#include <string>
namespace NuakeUI
{
namespace FileSystem
{
bool FileExists(const std::string& path);
std::string ReadFile(const std::string& path);
};
}