mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Removed NuakeUI FileSystem
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user