Can anyone help me??, I need the functions to delete, remove or change an archive's name or location with classes.
Can anyone help me??, I need the functions to delete, remove or change an archive's name or location with classes.
an archive, a collection of data (in this particular case text) under a name, I use fstream.h library for archive manipulation
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
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).
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.
Post what you have so far and we'll help you with it.
gg
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.