Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool writeInfo(const char* fileName, uint8_t data){
- std::ofstream outfile (fileName,std::ofstream::binary|std::ofstream::out|std::ofstream::app);
- if(outfile.fail())
- return false;
- outfile.write (reinterpret_cast<const char *>(&data),sizeof(uint8_t));
- if(!outfile.good())
- return false;
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement