This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

manipulating the database in .txt file

 
Thamu Gurung
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Iam a Java student and I got some problems manipulating the database which is stored in the .txt file .I know how to read that file and get it printed out.But how to update(add,delete , modify) the data automatically in that .txt file .Please help
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using here, a database or a text file?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The TXT is used like a database ?

Not a good idea since there is no structure what so ever. Do you need a file based structure or a file based database ?
 
Aditya Kanitkar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If i'm not mistaken.....

In short, you want to Add,Update or delete contents in the TXT file... right?

And for that, you need to look into FileHandling... I think BufferedReader can help you out...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic