Thread: archives

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    5

    archives

    Can anyone help me??, I need the functions to delete, remove or change an archive's name or location with classes.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    What's an archive? Zip file?

    gg

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    5
    an archive, a collection of data (in this particular case text) under a name, I use fstream.h library for archive manipulation

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    You can use <fstream> for file content manipulation.
    You can use remove() (MS CRT) or DeleteFile() (Win32 API) for file deletion.

    Let us know if you have a more specific question.

    gg

  5. #5
    Registered User
    Join Date
    Oct 2003
    Posts
    5
    well, as I am a student (electronic engeeniering) I have to write a class to manipulate archives, this class must contain at least tree functions: add information, read and show it at the display, write in the archive, besides having a constructor and a destructor, could you help me with the code (I tried to do it but the compiler always shows errors).

  6. #6
    Spaced Cadet
    Join Date
    Aug 2003
    Posts
    110
    Delete function: copy the whole file, and make the line (entire line) that you want to delete a string, now copy the data back, but exclude the data you deleted.

    Add function similar to delete but it adds it after a line specified

    move function: Combo of add + delete.

  7. #7
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Post what you have so far and we'll help you with it.

    gg

  8. #8
    Registered User
    Join Date
    Oct 2003
    Posts
    5
    tell me where I have to change it and which mistakes are there and if you can tell me how this class can be modified by any user.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. new Parser/scanner library
    By lollobrigido in forum Linux Programming
    Replies: 7
    Last Post: 01-29-2009, 08:44 AM
  2. Security type in zip archives ?
    By khpuce in forum Tech Board
    Replies: 1
    Last Post: 01-15-2008, 11:00 AM
  3. Post a thread from the archives
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-21-2004, 12:50 PM