Hi guys, i've google everywhere for this topic but didnt find a suitable answer. I'm currently trying to create binary file will not be able to be read as texts and will contain metadata(more like image files).
But i've tried writing to .dat, .bin files in binary mode and all of them are displaying in ascii text..which i dnt want. Please how do i go about this? Thank you
If you are writing ASCII text in binary file, you will get ASCII text here. Because ASCII translates into binary 1:1.
Open any .exe file. I bet, you will find many lines of text embedded into it.
You might compress files before writing them to save space. That will also render it unreadable by simply opening file with hex editor. You can use boost streams for that.
Thank you for your reply sir. I'm sory i replied late, i just saw your reply this morning. Yes i knew writing in ascii was my problem, but how can i write i other formats that wil render the file content non-readable?? I just need articles or links not neccesarily codes please...thank you