R
Rebecca
I am wondering what the best way to edit a file in Java is. I have a
file that has Header information and then footer information. in
between is the data encircled by Strings like "START DATA" and "END
DATA". I need a file that will contain only the info between these 2
strings. Currently, i am reading in the data with a buffered reader
line by line. extracting the info between thse 2 tags, and creating a
new file with this data. Is this the best way to do something like
this? Is there an easier/more efficient way?
Like is the are way to open the file - remove stuff before start data,
remove stuff after end of data and then close the file. This way i
don't have to write a new file?
Thanks in advance.
file that has Header information and then footer information. in
between is the data encircled by Strings like "START DATA" and "END
DATA". I need a file that will contain only the info between these 2
strings. Currently, i am reading in the data with a buffered reader
line by line. extracting the info between thse 2 tags, and creating a
new file with this data. Is this the best way to do something like
this? Is there an easier/more efficient way?
Like is the are way to open the file - remove stuff before start data,
remove stuff after end of data and then close the file. This way i
don't have to write a new file?
Thanks in advance.