A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
I/O and Streams
manipulating the database in .txt file
Joined: Feb 02, 2010
Feb 02, 2010 06:14:57
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
Joined: Apr 14, 2004
Feb 02, 2010 06:30:10
What are you using here, a database or a text file?
Joined: Feb 24, 2006
Feb 02, 2010 21:27:02
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 ?
SCJP 6 articles
SCJP 5/6 mock exams
More SCJP Mocks
Joined: Aug 08, 2009
Feb 03, 2010 06:10:42
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
can help you out...
I agree. Here's the link:
subject: manipulating the database in .txt file
Vector input .txt
Sceduling a task for everyday at a particular time??
validate a file extension
add timestamp with .txt file & write some information to the .txt file
Read Some 10,000 Files
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015