Read the GnuCash files

Fabrice Estiévenart fabrisss at gmail.com
Thu Jul 29 04:48:22 EDT 2010


Hi,

I'm still unable to unzip the file. I tried gunzip or tar xzf. My zip file
is possibly corrupted but each time I try to create a new one with GnuCash I
get the same error (in french 'Une erreur s'est produite lors de
l'extraction des fichiers.').

When I save my account file in GnuCash, which extension do I have to use ?

Fabrice

On 29 July 2010 10:18, Derek Atkins <derek at ihtfp.com> wrote:

> Hi,
>
> On Thu, July 29, 2010 3:59 am, Fabrice Estiévenart wrote:
> > Hello,
> >
> > I'd like coding a script that reads the GnuCash files storing my account
> > information (accounts, transactions, ...). I expected a text or XML-like
> > file but I can't open it with an editor (char encoding problems). I tried
> > to
> > unzip but it failed; it really looks like a binary file.
>
> It does look like a Binary file, but it is a gzipped xml file.
>
> > Could you please help me to have a (programmatic) access to this file so
> > that I could load it with a script ? I have GnuCash 2.2.9.
>
> gunzip < datafile > datafile.xml
>
> -derek
>
> --
>       Derek Atkins                 617-623-3745
>       derek at ihtfp.com             www.ihtfp.com
>       Computer and Internet Security Consultant
>
>


-- 
Fabrice Estiévenart

http://fabrice.estievenart.com - ma page perso
http://youtube.com/user/fabrisss2 - guitare, banjo, mes vidéos sur youtube


More information about the gnucash-devel mailing list