MCPcopy Create free account
hub / github.com/Huntereb/Awoo-Installer / readTextFromFile

Function readTextFromFile

source/util/util.cpp:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 std::string readTextFromFile(std::string ourFile) {
157 if (std::filesystem::exists(ourFile)) {
158 FILE * file = fopen(ourFile.c_str(), "r");
159 char line[1024];
160 fgets(line, 1024, file);
161 std::string url = line;
162 fflush(file);
163 fclose(file);
164 return url;
165 }
166 return "";
167 }
168
169 std::string softwareKeyboard(std::string guideText, std::string initialText, int LenMax) {
170 Result rc=0;

Callers 1

installSigPatchesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected