Reading Bytes from File
I'm very new to doing stuff like this and I'm confused as to how it is done. I want to store data 48 bits of data to file which during my program are in the form of 6 char variables, how would I do this? Would I just save the chars in a text file or since all I care about are their bits is there a different and possibly faster way? I also want to be able to read these 48 bits from file quickly and I'm quite sure that if they are in the form of a char string that I would have to parse it and thus slow down the process.
Hope this makes sense! :confused:
Consider ofstream write().
Okay, I found a great tutorial on the read and write functions, thanks for the help!