Results 1 to 4 of 4

Thread: Deleting a File

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2002
    Posts
    195

    Deleting a File

    When I say 'delete' I mean wipe off the disk completely. I'm not 100% sure how to do this, but would it work if I just opened the said file for output and wrote a load of 0's to it?
    Using Visual Studio .NET 2005

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Not guaranteed. The system might relocate the file.

    I don't know how disk scrubbers work, but you can expect them to have some kind of device driver in the background to do the direct hardware access they probably need for them.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Lively Member rekcus's Avatar
    Join Date
    Jan 1999
    Location
    Kuala Lumpur
    Posts
    122
    The last copy that may be transfered to another location would probably contain the zeros instead of the initial data.
    penyou!

    "The code bytes.."

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Yes, but the original location of the file would then still contain the old data of the file.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width