Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Machine::downloadSVG(std::string const& input) {
- std::string url = "https://dreampuf.github.io/GraphvizOnline/#";
- std::string s;
- std::ifstream in;
- in.open(input);
- while (!in.eof()) {
- getline(in, s);
- url += s;
- }
- std::string file = "image.svg";
- if (S_OK == URLDownloadToFile(NULL, url.c_str(), file.c_str(), 0, NULL))
- {
- std::cout << "Saved to" <<file << std::endl;
- }
- else {
- std::cout << "Nothing happened." << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement