This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

removing a record

 
Shashikant Anant
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating a class in which I am declaring variables, and adding methods like insert,delete and modify. I can do the insert and modify using constructors but I don't know how to delete the elemets which are defined in the same class without using arrays. These will be stored in data file. But I should delete it before saving it in the data file. Because the details will go to datafile only when user clicks on save and he can delete the data entered if he wants to delete it. Can anybody please help me to solve this problem?
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am confused about your problem. If you can modify, why not delete? Same concept. Can you post the code you have and maybe it will be more clear to what you are trying to accomplish?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic