Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. bool writeInfo(const char* fileName, uint8_t data){
  2. std::ofstream outfile (fileName,std::ofstream::binary|std::ofstream::out|std::ofstream::app);
  3. if(outfile.fail())
  4. return false;
  5. outfile.write (reinterpret_cast<const char *>(&data),sizeof(uint8_t));
  6. if(!outfile.good())
  7. return false;
  8. return true;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement