Thread: File deletion

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    87

    File deletion

    I have more troubles with my coursework, I can create a user file, encrypt it, and save it in binary mode, I can open it, decrypt it, and read it. But I want to have an admin style area, where user files can be deleted when users leave the club, and the files deleted to save space. Any ideas?
    **********************
    *==================*
    * Many Can. One Must... *
    *==================*
    **********************

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    look up the function remove()
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    87
    Have tried using remove, it just confuses me though. It opens the file to check it's there, closes it, runs the remove function and doesn't have any errors, but the file is still there!
    **********************
    *==================*
    * Many Can. One Must... *
    *==================*
    **********************

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Did you check remove's return value?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  4. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM