Next: , Previous: , Up: Tutorial   [Contents]


2.7 Saving, loading, and quitting

To save your accounts to disk, use the w command.

(Mutual Fund Income) :> w
File: example.leas
(Mutual Fund Income) :> 

To do so non-interactively, type leas/write "example.leas".

To quit, use the q command,

(Mutual Fund Income) :> q
Save file? (yes/no) no

To load the file you just saved, you can use the interactive command r,

$ leas
:> r
File: example.leas
(Checking) :> la
Checking                  23900.00   23900.00
Rent                       2000.00    2000.00
Salary                    -6000.00   -6000.00
Loan                      -9930.00   -9930.00
Interest                     30.00      30.00
Mutual Fund               10500.00   10500.00
Mutual Fund Income         -500.00    -500.00
(Checking) :> 

To load the file non-interactively, you can use the command leas/read "example.leas". This command is particularly useful to include in Leas’s init file ~/.leasrc.scm. Usually, this file will include the line,

(leas/read "/path/to/my-account.leas")

Note that in ~/.leasrc.scm you need to write standard Guile Scheme and enclose things in parenthesis. The parenthesis are only omitted in the interactive prompt.