temp file for intermediate storing before writing the new file

Jochen Issing jochen at isign-softart.de
Sun Jan 29 15:24:18 CET 2006

On Sunday 29 January 2006 15:06, Scott Wheeler wrote:
> On Sunday 29 January 2006 14:57, Jochen Issing wrote:
> > Hi All,
> >
> > regarding iTunes Tags I would like to ask for your opinion. I need to
> > write the new file into a new location before being able to write the
> > whole file at once. Therefore, I thought about writing a temp file, which
> > will be copied to the new location afterwards and reopened.
> >
> > Is there already something like that in taglib? If not, is the temp file
> > the correct solution? Can I use the function tempnam() from <stdio.h>?
> id3lib did something like that and it was a source of all kinds of problems
> (many of which I fixed back when I was working on it).  TagLib provides
> functions in the TagLib::File API to do insertion and replacement directly
> into files that will handle moving back the contents of the file.
That sounds quite well. I need to replace a certain part of the file - the 
moov-box, which contains all informational structures/tables/descriptions 
etc. And then append the other boxes. I will take a look at the functions and 
check them for my needs.

> If those functions don't provide what you need if you could describe what
> it is that you need in more detail I could probably write functions to
> handle your requirements without a temp file.
> Cheers,
> -Scott

 jochen issing
 gpg-sig: 0A121BC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20060129/5757cd9c/attachment.pgp 

More information about the taglib-devel mailing list