MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / read_text_file

Function read_text_file

app/workflow/workflow.cpp:175–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 return ext;
174}
175
176bool is_wav_path(const std::filesystem::path & path) {
177 return lowercase_extension(path) == ".wav";
178}
179
180std::string read_text_file(const std::filesystem::path & path) {
181 std::ifstream input(path);
182 if (!input) {
183 throw std::runtime_error("failed to open workflow batch text file: " + path.string());
184 }
185 std::ostringstream raw;
186 raw << input.rdbuf();

Callers 1

read_batch_text_payloadFunction · 0.70

Calls 1

strMethod · 0.80

Tested by

no test coverage detected