Mercurial > octave-nkf
comparison src/load-save.cc @ 5665:d42bd103de79
[project @ 2006-03-14 19:13:40 by jwe]
author | jwe |
---|---|
date | Tue, 14 Mar 2006 19:13:41 +0000 |
parents | 2618a0750ae6 |
children | a9ac02e9fda5 |
comparison
equal
deleted
inserted
replaced
5664:f043021a9df7 | 5665:d42bd103de79 |
---|---|
598 \n\ | 598 \n\ |
599 @example\n\ | 599 @example\n\ |
600 load data\n\ | 600 load data\n\ |
601 @end example\n\ | 601 @end example\n\ |
602 \n\ | 602 \n\ |
603 If load is invoked using the functional form\n\ | |
604 \n\ | |
605 @example\n\ | |
606 load (\"-text\", \"file.txt\", \"a\")\n\ | |
607 @end example\n\ | |
608 \n\ | |
609 @noindent\n\ | |
610 then the @var{options}, @var{file}, and variable name arguments\n\ | |
611 (@var{v1}, @dots{}) must be specified as character strings.\n\ | |
612 \n\ | |
603 If a variable that is not marked as global is loaded from a file when a\n\ | 613 If a variable that is not marked as global is loaded from a file when a\n\ |
604 global symbol with the same name already exists, it is loaded in the\n\ | 614 global symbol with the same name already exists, it is loaded in the\n\ |
605 global symbol table. Also, if a variable is marked as global in a file\n\ | 615 global symbol table. Also, if a variable is marked as global in a file\n\ |
606 and a local symbol exists, the local symbol is moved to the global\n\ | 616 and a local symbol exists, the local symbol is moved to the global\n\ |
607 symbol table and given the value from the file. Since it seems that\n\ | 617 symbol table and given the value from the file. Since it seems that\n\ |
1445 the zlib library." | 1455 the zlib library." |
1446 #endif /* ! HAVE ZLIB */ | 1456 #endif /* ! HAVE ZLIB */ |
1447 | 1457 |
1448 DEFCMD (save, args, , | 1458 DEFCMD (save, args, , |
1449 "-*- texinfo -*-\n\ | 1459 "-*- texinfo -*-\n\ |
1450 @deffn {Command} save options file v1 v2 @dots{}\n\ | 1460 @deffn {Command} save options file @var{v1} @var{v2} @dots{}\n\ |
1451 Save the named variables @var{v1}, @var{v2}, @dots{} in the file\n\ | 1461 Save the named variables @var{v1}, @var{v2}, @dots{} in the file\n\ |
1452 @var{file}. The special filename @samp{-} can be used to write the\n\ | 1462 @var{file}. The special filename @samp{-} can be used to write the\n\ |
1453 output to your terminal. If no variable names are listed, Octave saves\n\ | 1463 output to your terminal. If no variable names are listed, Octave saves\n\ |
1454 all the variables in the current scope. Valid options for the\n\ | 1464 all the variables in the current scope. Valid options for the\n\ |
1455 @code{save} command are listed in the following table. Options that\n\ | 1465 @code{save} command are listed in the following table. Options that\n\ |
1456 modify the output format override the format specified by the built-in\n\ | 1466 modify the output format override the format specified by the built-in\n\ |
1457 variable @code{default_save_options}.\n\ | 1467 variable @code{default_save_options}.\n\ |
1468 \n\ | |
1469 If save is invoked using the functional form\n\ | |
1470 \n\ | |
1471 @example\n\ | |
1472 save (\"-text\", \"file.txt\", \"a\")\n\ | |
1473 @end example\n\ | |
1474 \n\ | |
1475 @noindent\n\ | |
1476 then the @var{options}, @var{file}, and variable name arguments\n\ | |
1477 (@var{vname1}, @dots{}) must be specified as character strings.\n\ | |
1458 \n\ | 1478 \n\ |
1459 @table @code\n\ | 1479 @table @code\n\ |
1460 @item -ascii\n\ | 1480 @item -ascii\n\ |
1461 Save the data in Octave's text data format.\n\ | 1481 Save the data in Octave's text data format.\n\ |
1462 \n\ | 1482 \n\ |