Hi,I need to edit in a file without deleting all the data.
Thanks
nouryn 0 Newbie Poster
Recommended Answers
Jump to PostAs I do not know which exactly writer you using only thing I can say is to look for append() method which will be either directly implemented in used writer class or inherited from other classes above this one
Jump to PostHi,I need to edit in a file without deleting all the data.
Thanksdo you need to edit the data in a file, append data, delete parts of the file (without deleting ALL of the data, as you put it), ...
anyway, open notepad, type something, close and save …
Jump to Post@nouryn - if you can provide better description of user editing process we may able to help. However right now as you can see from the responses it is not clear what you try to do. Some supporting coding would be welcome...
Jump to PostYes there are better ways of editing data at a random position; look into RandomAccessFile, though things can get complicated pretty soon.
All 15 Replies
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
stultuske 1,116 Posting Maven Featured Poster
nouryn 0 Newbie Poster
stultuske 1,116 Posting Maven Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
nouryn 0 Newbie Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
nouryn 0 Newbie Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
stultuske 1,116 Posting Maven Featured Poster
etdm 0 Newbie Poster
BestJewSinceJC 700 Posting Maven
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Ezzaral 2,714 Posting Sage Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.