| 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; |