I would like to know if is possible to write a sector on a diskette. One secret sector wil be changed from 00000000........0000 to 000000000.....000000001. If this is possible, and later read this sector, please say something.
I would like to know if is possible to write a sector on a diskette. One secret sector wil be changed from 00000000........0000 to 000000000.....000000001. If this is possible, and later read this sector, please say something.
from 0000000 to 0000? They are the same thing right?
And you would need to look up bitwise operations, which deal with bits. Also the STL contains bitsets which is a data structure that allows you to represent a sequence of bits as a class and operate on them however you like.
Which OS/Compiler - many systems won't allow you such low level access.
Which filesystem are you using?
Why the secrecy - who are you trying to hide stuff from anyway?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.