Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkcgen <kcgen@users.noreply.github.com>2022-10-12 18:42:02 +0300
committerkcgen <kcgen@users.noreply.github.com>2022-10-12 18:42:02 +0300
commitfe5973dddc18638d5c6b2a96e86fdf3a9deeecfa (patch)
treecafd4568ad5bdc4e8e05313be7ca6791f6c196a2 /include
parent83a2ab3ec59a4dffc8a78dad554aecf64422b001 (diff)
Move the text file reader function to file utilities
Diffstat (limited to 'include')
-rw-r--r--include/fs_utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/fs_utils.h b/include/fs_utils.h
index 25d381bbc..22e8e1a0f 100644
--- a/include/fs_utils.h
+++ b/include/fs_utils.h
@@ -25,10 +25,15 @@
#include <cinttypes>
#include <ctime>
+#include <optional>
#include <string>
+#include <vector>
#include "std_filesystem.h"
+// return the lines from the given text file or an empty optional
+std::optional<std::vector<std::string>> get_lines(const std_fs::path &text_file);
+
/* Check if the given path corresponds to an existing file or directory.
*/