Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Reopening fit file

Avatar
Rank

Total Posts: 16

Joined 2013-10-23

PM

Sorry to ask such a basic question but i haven't found nothing yet. I have java code which opens/write/close a fit file. What is the best way to reopen this fit file and write another records ?
Thanks      

Signature

Avatar
RankRankRankRank

Total Posts: 149

Joined 2014-04-02

PM

I was wondering the same thing, but it's not possible without modifying the source as (Java SDK) FileEncoder does:
/**
 * Opens file for writing. If the file already exists it will be overwritten.
 *
 * @param file
 *           file to write
 */
public void open(File file{

    file
.delete();
    ... 
     

Signature

blackramlabs.com

Avatar
Rank

Total Posts: 16

Joined 2013-10-23

PM

Thanks. So reading the whole file and reencode it seems the way to go....      

Signature

Rank

Total Posts: 2

Joined 2019-01-23

PM

It was helpful topic for me. Thanks for such a excellent topic.      

Signature

Rank

Total Posts: 1

Joined 2019-04-30

PM

Thanks for the explaination that you have shared with us.
java training institute      
Rank

Total Posts: 1

Joined 2019-06-20

PM

Thanks for such an excellent post! I got valuable information here..Keep up!