Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Reopening fit file

Avatar
Rank

Total Posts: 14

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: 147

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

Freelance. Currently GMT+1.

Avatar
Rank

Total Posts: 14

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