IO file editting

A

ali

hi there well i am woundering if there is a simple solution in java for
my problem

i need to read first few bytes from a text file and then delete those
few bytes i read from the file.

the reading file is very simple but how can i delete let say the first
10 bytes of the file begining form the file without touching the rest
of the file ?!!


thanks for help in advance
 
T

Thomas Weidenfeller

ali said:
hi there well i am woundering if there is a simple solution in java for
my problem

i need to read first few bytes from a text file and then delete those
few bytes i read from the file.

the reading file is very simple but how can i delete let say the first
10 bytes of the file begining form the file without touching the rest
of the file ?!!

You can't. You have to copy everything but the first few bytes.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,173
Latest member
GeraldReund
Top