| 109 | } |
| 110 | |
| 111 | bool copyFile(std::string inFile, std::string outFile) { |
| 112 | char ch; |
| 113 | std::ifstream f1(inFile); |
| 114 | std::ofstream f2(outFile); |
| 115 | |
| 116 | if(!f1 || !f2) return false; |
| 117 | |
| 118 | while(f1 && f1.get(ch)) f2.put(ch); |
| 119 | return true; |
| 120 | } |
| 121 | |
| 122 | std::string formatUrlString(std::string ourString) { |
| 123 | std::stringstream ourStream(ourString); |
no test coverage detected