Is this possible?

This is a discussion on Is this possible? within the C++ Programming forums, part of the General Programming Boards category; I would like to know if is possible to write a sector on a diskette. One secret sector wil be ...

  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    2

    Question Is this possible?

    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.

  2. #2
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    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.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21