| 43 | char* NameDevicesToSupport = NULL; |
| 44 | |
| 45 | int writeBinaryToFile(const char* fileName, const char* binary, size_t numBytes) |
| 46 | { |
| 47 | ofstream output; |
| 48 | output.open(fileName, ios::binary | ios::trunc); |
| 49 | if (output.is_open()) |
| 50 | { |
| 51 | output.write(binary, numBytes); |
| 52 | output.close(); |
| 53 | return 0; |
| 54 | } |
| 55 | else |
| 56 | { |
| 57 | return 1; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | |
| 62 |