comparison libinterp/corefcn/file-io.cc @ 17281:bc924baa2c4e

doc: Add new @qcode macro for code samples which are quoted. Macro handles options ("on") or properties ("position") more elegantly than @code{"text"}. * doc/interpreter/macros.texi: Add new @qcode macro. * doc/interpreter/tips.txi: Add documentation about @qcode macro. * doc/interpreter/basics.txi, doc/interpreter/container.txi, doc/interpreter/emacs.txi, doc/interpreter/errors.txi, doc/interpreter/eval.txi, doc/interpreter/expr.txi, doc/interpreter/external.txi, doc/interpreter/func.txi, doc/interpreter/grammar.txi, doc/interpreter/image.txi, doc/interpreter/install.txi, doc/interpreter/interp.txi, doc/interpreter/io.txi, doc/interpreter/matrix.txi, doc/interpreter/numbers.txi, doc/interpreter/oop.txi, doc/interpreter/package.txi, doc/interpreter/plot.txi, doc/interpreter/quad.txi, doc/interpreter/sparse.txi, doc/interpreter/strings.txi, doc/interpreter/system.txi, doc/interpreter/vectorize.txi, libinterp/corefcn/balance.cc, libinterp/corefcn/bitfcns.cc, libinterp/corefcn/cellfun.cc, libinterp/corefcn/conv2.cc, libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc, libinterp/corefcn/defaults.cc, libinterp/corefcn/dirfns.cc, libinterp/corefcn/dlmread.cc, libinterp/corefcn/error.cc, libinterp/corefcn/file-io.cc, libinterp/corefcn/find.cc, libinterp/corefcn/gammainc.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/help.cc, libinterp/corefcn/hex2num.cc, libinterp/corefcn/input.cc, libinterp/corefcn/load-path.cc, libinterp/corefcn/load-save.cc, libinterp/corefcn/ls-oct-ascii.cc, libinterp/corefcn/lu.cc, libinterp/corefcn/luinc.cc, libinterp/corefcn/matrix_type.cc, libinterp/corefcn/oct-hist.cc, libinterp/corefcn/pager.cc, libinterp/corefcn/pr-output.cc, libinterp/corefcn/pt-jit.cc, libinterp/corefcn/qz.cc, libinterp/corefcn/rand.cc, libinterp/corefcn/regexp.cc, libinterp/corefcn/schur.cc, libinterp/corefcn/sighandlers.cc, libinterp/corefcn/sparse.cc, libinterp/corefcn/spparms.cc, libinterp/corefcn/str2double.cc, libinterp/corefcn/svd.cc, libinterp/corefcn/symtab.cc, libinterp/corefcn/syscalls.cc, libinterp/corefcn/toplev.cc, libinterp/corefcn/tril.cc, libinterp/corefcn/typecast.cc, libinterp/corefcn/utils.cc, libinterp/corefcn/variables.cc, libinterp/dldfcn/__init_fltk__.cc, libinterp/dldfcn/chol.cc, libinterp/dldfcn/colamd.cc, libinterp/dldfcn/fftw.cc, libinterp/dldfcn/qr.cc, libinterp/dldfcn/symbfact.cc, libinterp/octave-value/ov-base.cc, libinterp/octave-value/ov-fcn-handle.cc, libinterp/octave-value/ov-fcn-inline.cc, libinterp/octave-value/ov-java.cc, libinterp/octave-value/ov-range.cc, libinterp/octave-value/ov-struct.cc, libinterp/octave-value/ov-usr-fcn.cc, libinterp/parse-tree/oct-parse.in.yy, libinterp/parse-tree/pt-binop.cc, libinterp/parse-tree/pt-eval.cc, libinterp/parse-tree/pt-mat.cc, scripts/@ftp/ftp.m, scripts/deprecated/java_convert_matrix.m, scripts/deprecated/java_debug.m, scripts/deprecated/java_unsigned_conversion.m, scripts/deprecated/shell_cmd.m, scripts/general/dblquad.m, scripts/general/display.m, scripts/general/genvarname.m, scripts/general/idivide.m, scripts/general/interp1.m, scripts/general/interp2.m, scripts/general/interp3.m, scripts/general/interpn.m, scripts/general/isa.m, scripts/general/profexplore.m, scripts/general/profile.m, scripts/general/quadgk.m, scripts/general/randi.m, scripts/general/structfun.m, scripts/general/subsindex.m, scripts/general/triplequad.m, scripts/geometry/griddata.m, scripts/geometry/griddata3.m, scripts/geometry/griddatan.m, scripts/geometry/voronoi.m, scripts/help/help.m, scripts/help/lookfor.m, scripts/image/cmpermute.m, scripts/image/colormap.m, scripts/image/image.m, scripts/image/imagesc.m, scripts/image/imfinfo.m, scripts/image/imformats.m, scripts/image/imread.m, scripts/image/imshow.m, scripts/image/imwrite.m, scripts/image/ind2gray.m, scripts/image/lines.m, scripts/image/rgb2ind.m, scripts/image/spinmap.m, scripts/io/dlmwrite.m, scripts/io/strread.m, scripts/io/textread.m, scripts/io/textscan.m, scripts/java/javaclasspath.m, scripts/java/usejava.m, scripts/miscellaneous/bzip2.m, scripts/miscellaneous/computer.m, scripts/miscellaneous/copyfile.m, scripts/miscellaneous/debug.m, scripts/miscellaneous/dos.m, scripts/miscellaneous/edit.m, scripts/miscellaneous/gzip.m, scripts/miscellaneous/license.m, scripts/miscellaneous/mkoctfile.m, scripts/miscellaneous/movefile.m, scripts/miscellaneous/parseparams.m, scripts/miscellaneous/unix.m, scripts/optimization/fminbnd.m, scripts/optimization/fminsearch.m, scripts/optimization/fminunc.m, scripts/optimization/fsolve.m, scripts/optimization/fzero.m, scripts/optimization/glpk.m, scripts/optimization/lsqnonneg.m, scripts/optimization/optimset.m, scripts/optimization/pqpnonneg.m, scripts/pkg/pkg.m, scripts/plot/allchild.m, scripts/plot/ancestor.m, scripts/plot/area.m, scripts/plot/axis.m, scripts/plot/bar.m, scripts/plot/barh.m, scripts/plot/box.m, scripts/plot/caxis.m, scripts/plot/cla.m, scripts/plot/clabel.m, scripts/plot/clf.m, scripts/plot/close.m, scripts/plot/colorbar.m, scripts/plot/daspect.m, scripts/plot/ezmesh.m, scripts/plot/ezmeshc.m, scripts/plot/ezsurf.m, scripts/plot/ezsurfc.m, scripts/plot/findall.m, scripts/plot/findobj.m, scripts/plot/gcbo.m, scripts/plot/gcf.m, scripts/plot/gco.m, scripts/plot/grid.m, scripts/plot/guihandles.m, scripts/plot/hdl2struct.m, scripts/plot/hidden.m, scripts/plot/hold.m, scripts/plot/isonormals.m, scripts/plot/isosurface.m, scripts/plot/legend.m, scripts/plot/mesh.m, scripts/plot/meshc.m, scripts/plot/meshz.m, scripts/plot/newplot.m, scripts/plot/orient.m, scripts/plot/pareto.m, scripts/plot/patch.m, scripts/plot/pbaspect.m, scripts/plot/pcolor.m, scripts/plot/plot.m, scripts/plot/print.m, scripts/plot/private/__add_default_menu__.m, scripts/plot/quiver.m, scripts/plot/quiver3.m, scripts/plot/refreshdata.m, scripts/plot/saveas.m, scripts/plot/scatter.m, scripts/plot/scatter3.m, scripts/plot/shading.m, scripts/plot/shrinkfaces.m, scripts/plot/slice.m, scripts/plot/stem.m, scripts/plot/stem3.m, scripts/plot/struct2hdl.m, scripts/plot/subplot.m, scripts/plot/surf.m, scripts/plot/surfc.m, scripts/plot/surfl.m, scripts/plot/tetramesh.m, scripts/plot/uigetfile.m, scripts/plot/uimenu.m, scripts/plot/uiputfile.m, scripts/plot/waterfall.m, scripts/plot/whitebg.m, scripts/plot/xlim.m, scripts/plot/ylim.m, scripts/plot/zlim.m, scripts/polynomial/conv.m, scripts/polynomial/polyout.m, scripts/polynomial/splinefit.m, scripts/set/ismember.m, scripts/set/powerset.m, scripts/set/setdiff.m, scripts/set/union.m, scripts/set/unique.m, scripts/signal/detrend.m, scripts/signal/filter2.m, scripts/signal/freqz.m, scripts/signal/periodogram.m, scripts/signal/spectral_adf.m, scripts/signal/spectral_xdf.m, scripts/sparse/eigs.m, scripts/sparse/svds.m, scripts/specfun/legendre.m, scripts/special-matrix/gallery.m, scripts/statistics/base/mean.m, scripts/statistics/base/moment.m, scripts/statistics/tests/cor_test.m, scripts/statistics/tests/kolmogorov_smirnov_test.m, scripts/statistics/tests/kolmogorov_smirnov_test_2.m, scripts/statistics/tests/kruskal_wallis_test.m, scripts/statistics/tests/prop_test_2.m, scripts/statistics/tests/sign_test.m, scripts/statistics/tests/t_test.m, scripts/statistics/tests/t_test_2.m, scripts/statistics/tests/t_test_regression.m, scripts/statistics/tests/u_test.m, scripts/statistics/tests/var_test.m, scripts/statistics/tests/welch_test.m, scripts/statistics/tests/wilcoxon_test.m, scripts/statistics/tests/z_test.m, scripts/statistics/tests/z_test_2.m, scripts/strings/base2dec.m, scripts/strings/index.m, scripts/strings/isstrprop.m, scripts/strings/mat2str.m, scripts/strings/regexptranslate.m, scripts/strings/rindex.m, scripts/strings/str2num.m, scripts/strings/strcat.m, scripts/strings/strjust.m, scripts/strings/strmatch.m, scripts/strings/validatestring.m, scripts/testfun/demo.m, scripts/testfun/example.m, scripts/testfun/test.m, scripts/time/addtodate.m, scripts/time/asctime.m, scripts/time/datestr.m, scripts/time/datetick.m, scripts/time/weekday.m, scripts/ui/errordlg.m, scripts/ui/helpdlg.m, scripts/ui/inputdlg.m, scripts/ui/listdlg.m, scripts/ui/msgbox.m, scripts/ui/questdlg.m, scripts/ui/warndlg.m: Use new @qcode macro.
author Rik <rik@octave.org>
date Mon, 19 Aug 2013 20:46:38 -0700
parents d6499c14021c
children 3856298f1ff8
comparison
equal deleted inserted replaced
17280:1a5407bae739 17281:bc924baa2c4e
645 @item @samp{a+}\n\ 645 @item @samp{a+}\n\
646 Open or create a file for reading or writing at the end of the\n\ 646 Open or create a file for reading or writing at the end of the\n\
647 file.\n\ 647 file.\n\
648 @end table\n\ 648 @end table\n\
649 \n\ 649 \n\
650 Append a \"t\" to the mode string to open the file in text mode or a\n\ 650 Append a @qcode{\"t\"} to the mode string to open the file in text mode or a\n\
651 \"b\" to open in binary mode. On Windows and Macintosh systems, text\n\ 651 @qcode{\"b\"} to open in binary mode. On Windows and Macintosh systems, text\n\
652 mode reading and writing automatically converts linefeeds to the\n\ 652 mode reading and writing automatically converts linefeeds to the\n\
653 appropriate line end character for the system (carriage-return linefeed\n\ 653 appropriate line end character for the system (carriage-return linefeed\n\
654 on Windows, carriage-return on Macintosh). The default if no mode is\n\ 654 on Windows, carriage-return on Macintosh). The default if no mode is\n\
655 specified is binary mode.\n\ 655 specified is binary mode.\n\
656 \n\ 656 \n\
657 Additionally, you may append a \"z\" to the mode string to open a\n\ 657 Additionally, you may append a @qcode{\"z\"} to the mode string to open a\n\
658 gzipped file for reading or writing. For this to be successful, you\n\ 658 gzipped file for reading or writing. For this to be successful, you\n\
659 must also open the file in binary mode.\n\ 659 must also open the file in binary mode.\n\
660 \n\ 660 \n\
661 The parameter @var{arch} is a string specifying the default data format\n\ 661 The parameter @var{arch} is a string specifying the default data format\n\
662 for the file. Valid values for @var{arch} are:\n\ 662 for the file. Valid values for @var{arch} are:\n\
823 Set the file pointer to any location within the file @var{fid}.\n\ 823 Set the file pointer to any location within the file @var{fid}.\n\
824 \n\ 824 \n\
825 The pointer is positioned @var{offset} characters from the @var{origin},\n\ 825 The pointer is positioned @var{offset} characters from the @var{origin},\n\
826 which may be one of the predefined variables @w{@code{SEEK_CUR}} (current\n\ 826 which may be one of the predefined variables @w{@code{SEEK_CUR}} (current\n\
827 position), @w{@code{SEEK_SET}} (beginning), or @w{@code{SEEK_END}} (end of\n\ 827 position), @w{@code{SEEK_SET}} (beginning), or @w{@code{SEEK_END}} (end of\n\
828 file) or strings \"cof\", \"bof\" or \"eof\". If @var{origin} is omitted,\n\ 828 file) or strings @qcode{\"cof\"}, @qcode{\"bof\"} or @qcode{\"eof\"}. If\n\
829 @w{@code{SEEK_SET}} is assumed. @var{offset} may be positive, negative, or zero but not all combinations of @var{origin} and @var{offset} can be realized.\n\ 829 @var{origin} is omitted, @w{@code{SEEK_SET}} is assumed. @var{offset} may\n\
830 be positive, negative, or zero but not all combinations of @var{origin} and\n\
831 @var{offset} can be realized.\n\
830 \n\ 832 \n\
831 Return 0 on success and -1 on error.\n\ 833 Return 0 on success and -1 on error.\n\
832 @seealso{fskipl, frewind, ftell, fopen}\n\ 834 @seealso{fskipl, frewind, ftell, fopen}\n\
833 @end deftypefn") 835 @end deftypefn")
834 { 836 {
1438 \n\ 1440 \n\
1439 The optional argument @var{precision} is a string specifying the type of\n\ 1441 The optional argument @var{precision} is a string specifying the type of\n\
1440 data to read and may be one of\n\ 1442 data to read and may be one of\n\
1441 \n\ 1443 \n\
1442 @table @asis\n\ 1444 @table @asis\n\
1443 @item \"schar\"\n\ 1445 @item @qcode{\"schar\"}\n\
1444 @itemx \"signed char\"\n\ 1446 @itemx @qcode{\"signed char\"}\n\
1445 Signed character.\n\ 1447 Signed character.\n\
1446 \n\ 1448 \n\
1447 @item \"uchar\"\n\ 1449 @item @qcode{\"uchar\"}\n\
1448 @itemx \"unsigned char\"\n\ 1450 @itemx @qcode{\"unsigned char\"}\n\
1449 Unsigned character.\n\ 1451 Unsigned character.\n\
1450 \n\ 1452 \n\
1451 @item \"int8\"\n\ 1453 @item @qcode{\"int8\"}\n\
1452 @itemx \"integer*1\"\n\ 1454 @itemx @qcode{\"integer*1\"}\n\
1453 \n\ 1455 \n\
1454 8-bit signed integer.\n\ 1456 8-bit signed integer.\n\
1455 \n\ 1457 \n\
1456 @item \"int16\"\n\ 1458 @item @qcode{\"int16\"}\n\
1457 @itemx \"integer*2\"\n\ 1459 @itemx @qcode{\"integer*2\"}\n\
1458 16-bit signed integer.\n\ 1460 16-bit signed integer.\n\
1459 \n\ 1461 \n\
1460 @item \"int32\"\n\ 1462 @item @qcode{\"int32\"}\n\
1461 @itemx \"integer*4\"\n\ 1463 @itemx @qcode{\"integer*4\"}\n\
1462 32-bit signed integer.\n\ 1464 32-bit signed integer.\n\
1463 \n\ 1465 \n\
1464 @item \"int64\"\n\ 1466 @item @qcode{\"int64\"}\n\
1465 @itemx \"integer*8\"\n\ 1467 @itemx @qcode{\"integer*8\"}\n\
1466 64-bit signed integer.\n\ 1468 64-bit signed integer.\n\
1467 \n\ 1469 \n\
1468 @item \"uint8\"\n\ 1470 @item @qcode{\"uint8\"}\n\
1469 8-bit unsigned integer.\n\ 1471 8-bit unsigned integer.\n\
1470 \n\ 1472 \n\
1471 @item \"uint16\"\n\ 1473 @item @qcode{\"uint16\"}\n\
1472 16-bit unsigned integer.\n\ 1474 16-bit unsigned integer.\n\
1473 \n\ 1475 \n\
1474 @item \"uint32\"\n\ 1476 @item @qcode{\"uint32\"}\n\
1475 32-bit unsigned integer.\n\ 1477 32-bit unsigned integer.\n\
1476 \n\ 1478 \n\
1477 @item \"uint64\"\n\ 1479 @item @qcode{\"uint64\"}\n\
1478 64-bit unsigned integer.\n\ 1480 64-bit unsigned integer.\n\
1479 \n\ 1481 \n\
1480 @item \"single\"\n\ 1482 @item @qcode{\"single\"}\n\
1481 @itemx \"float32\"\n\ 1483 @itemx @qcode{\"float32\"}\n\
1482 @itemx \"real*4\"\n\ 1484 @itemx @qcode{\"real*4\"}\n\
1483 32-bit floating point number.\n\ 1485 32-bit floating point number.\n\
1484 \n\ 1486 \n\
1485 @item \"double\"\n\ 1487 @item @qcode{\"double\"}\n\
1486 @itemx \"float64\"\n\ 1488 @itemx @qcode{\"float64\"}\n\
1487 @itemx \"real*8\"\n\ 1489 @itemx @qcode{\"real*8\"}\n\
1488 64-bit floating point number.\n\ 1490 64-bit floating point number.\n\
1489 \n\ 1491 \n\
1490 @item \"char\"\n\ 1492 @item @qcode{\"char\"}\n\
1491 @itemx \"char*1\"\n\ 1493 @itemx @qcode{\"char*1\"}\n\
1492 Single character.\n\ 1494 Single character.\n\
1493 \n\ 1495 \n\
1494 @item \"short\"\n\ 1496 @item @qcode{\"short\"}\n\
1495 Short integer (size is platform dependent).\n\ 1497 Short integer (size is platform dependent).\n\
1496 \n\ 1498 \n\
1497 @item \"int\"\n\ 1499 @item @qcode{\"int\"}\n\
1498 Integer (size is platform dependent).\n\ 1500 Integer (size is platform dependent).\n\
1499 \n\ 1501 \n\
1500 @item \"long\"\n\ 1502 @item @qcode{\"long\"}\n\
1501 Long integer (size is platform dependent).\n\ 1503 Long integer (size is platform dependent).\n\
1502 \n\ 1504 \n\
1503 @item \"ushort\"\n\ 1505 @item @qcode{\"ushort\"}\n\
1504 @itemx \"unsigned short\"\n\ 1506 @itemx @qcode{\"unsigned short\"}\n\
1505 Unsigned short integer (size is platform dependent).\n\ 1507 Unsigned short integer (size is platform dependent).\n\
1506 \n\ 1508 \n\
1507 @item \"uint\"\n\ 1509 @item @qcode{\"uint\"}\n\
1508 @itemx \"unsigned int\"\n\ 1510 @itemx @qcode{\"unsigned int\"}\n\
1509 Unsigned integer (size is platform dependent).\n\ 1511 Unsigned integer (size is platform dependent).\n\
1510 \n\ 1512 \n\
1511 @item \"ulong\"\n\ 1513 @item @qcode{\"ulong\"}\n\
1512 @itemx \"unsigned long\"\n\ 1514 @itemx @qcode{\"unsigned long\"}\n\
1513 Unsigned long integer (size is platform dependent).\n\ 1515 Unsigned long integer (size is platform dependent).\n\
1514 \n\ 1516 \n\
1515 @item \"float\"\n\ 1517 @item @qcode{\"float\"}\n\
1516 Single precision floating point number (size is platform dependent).\n\ 1518 Single precision floating point number (size is platform dependent).\n\
1517 @end table\n\ 1519 @end table\n\
1518 \n\ 1520 \n\
1519 @noindent\n\ 1521 @noindent\n\
1520 The default precision is @code{\"uchar\"}.\n\ 1522 The default precision is @qcode{\"uchar\"}.\n\
1521 \n\ 1523 \n\
1522 The @var{precision} argument may also specify an optional repeat\n\ 1524 The @var{precision} argument may also specify an optional repeat\n\
1523 count. For example, @samp{32*single} causes @code{fread} to read\n\ 1525 count. For example, @samp{32*single} causes @code{fread} to read\n\
1524 a block of 32 single precision floating point numbers. Reading in\n\ 1526 a block of 32 single precision floating point numbers. Reading in\n\
1525 blocks is useful in combination with the @var{skip} argument.\n\ 1527 blocks is useful in combination with the @var{skip} argument.\n\
1551 \n\ 1553 \n\
1552 The optional argument @var{arch} is a string specifying the data format\n\ 1554 The optional argument @var{arch} is a string specifying the data format\n\
1553 for the file. Valid values are\n\ 1555 for the file. Valid values are\n\
1554 \n\ 1556 \n\
1555 @table @code\n\ 1557 @table @code\n\
1556 @item \"native\"\n\ 1558 @item @qcode{\"native\"}\n\
1557 The format of the current machine.\n\ 1559 The format of the current machine.\n\
1558 \n\ 1560 \n\
1559 @item \"ieee-be\"\n\ 1561 @item \"ieee-be\"\n\
1560 IEEE big endian.\n\ 1562 IEEE big endian.\n\
1561 \n\ 1563 \n\
1562 @item \"ieee-le\"\n\ 1564 @item \"ieee-le\"\n\
1563 IEEE little endian.\n\ 1565 IEEE little endian.\n\
1564 \n\ 1566 \n\
1565 @item \"vaxd\"\n\ 1567 @item @qcode{\"vaxd\"}\n\
1566 VAX D floating format.\n\ 1568 VAX D floating format.\n\
1567 \n\ 1569 \n\
1568 @item \"vaxg\"\n\ 1570 @item @qcode{\"vaxg\"}\n\
1569 VAX G floating format.\n\ 1571 VAX G floating format.\n\
1570 \n\ 1572 \n\
1571 @item \"cray\"\n\ 1573 @item @qcode{\"cray\"}\n\
1572 Cray floating format.\n\ 1574 Cray floating format.\n\
1573 @end table\n\ 1575 @end table\n\
1574 \n\ 1576 \n\
1575 @noindent\n\ 1577 @noindent\n\
1576 Conversions are currently only supported for @code{\"ieee-be\"} and\n\ 1578 Conversions are currently only supported for @qcode{\"ieee-be\"} and\n\
1577 @code{\"ieee-le\"} formats.\n\ 1579 @qcode{\"ieee-le\"} formats.\n\
1578 \n\ 1580 \n\
1579 The data read from the file is returned in @var{val}, and the number of\n\ 1581 The data read from the file is returned in @var{val}, and the number of\n\
1580 values read is returned in @code{count}\n\ 1582 values read is returned in @code{count}\n\
1581 @seealso{fwrite, fgets, fgetl, fscanf, fopen}\n\ 1583 @seealso{fwrite, fgets, fgetl, fscanf, fopen}\n\
1582 @end deftypefn") 1584 @end deftypefn")
1825 given by @var{command}. The file identifier corresponding to the input\n\ 1827 given by @var{command}. The file identifier corresponding to the input\n\
1826 or output stream of the process is returned in @var{fid}. The argument\n\ 1828 or output stream of the process is returned in @var{fid}. The argument\n\
1827 @var{mode} may be\n\ 1829 @var{mode} may be\n\
1828 \n\ 1830 \n\
1829 @table @code\n\ 1831 @table @code\n\
1830 @item \"r\"\n\ 1832 @item @qcode{\"r\"}\n\
1831 The pipe will be connected to the standard output of the process, and\n\ 1833 The pipe will be connected to the standard output of the process, and\n\
1832 open for reading.\n\ 1834 open for reading.\n\
1833 \n\ 1835 \n\
1834 @item \"w\"\n\ 1836 @item @qcode{\"w\"}\n\
1835 The pipe will be connected to the standard input of the process, and\n\ 1837 The pipe will be connected to the standard input of the process, and\n\
1836 open for writing.\n\ 1838 open for writing.\n\
1837 @end table\n\ 1839 @end table\n\
1838 \n\ 1840 \n\
1839 For example:\n\ 1841 For example:\n\
1920 @deftypefn {Built-in Function} {} tmpnam ()\n\ 1922 @deftypefn {Built-in Function} {} tmpnam ()\n\
1921 @deftypefnx {Built-in Function} {} tmpnam (@var{dir})\n\ 1923 @deftypefnx {Built-in Function} {} tmpnam (@var{dir})\n\
1922 @deftypefnx {Built-in Function} {} tmpnam (@var{dir}, @var{prefix})\n\ 1924 @deftypefnx {Built-in Function} {} tmpnam (@var{dir}, @var{prefix})\n\
1923 Return a unique temporary file name as a string.\n\ 1925 Return a unique temporary file name as a string.\n\
1924 \n\ 1926 \n\
1925 If @var{prefix} is omitted, a value of @code{\"oct-\"} is used.\n\ 1927 If @var{prefix} is omitted, a value of @qcode{\"oct-\"} is used.\n\
1926 If @var{dir} is also omitted, the default directory for temporary files\n\ 1928 If @var{dir} is also omitted, the default directory for temporary files\n\
1927 is used. If @var{dir} is provided, it must exist, otherwise the default\n\ 1929 is used. If @var{dir} is provided, it must exist, otherwise the default\n\
1928 directory for temporary files is used. Since the named file is not\n\ 1930 directory for temporary files is used. Since the named file is not\n\
1929 opened, by @code{tmpnam}, it is possible (though relatively unlikely)\n\ 1931 opened, by @code{tmpnam}, it is possible (though relatively unlikely)\n\
1930 that it will not be available by the time your program attempts to open it.\n\ 1932 that it will not be available by the time your program attempts to open it.\n\
1962 1964
1963 DEFUN (tmpfile, args, , 1965 DEFUN (tmpfile, args, ,
1964 "-*- texinfo -*-\n\ 1966 "-*- texinfo -*-\n\
1965 @deftypefn {Built-in Function} {[@var{fid}, @var{msg}] =} tmpfile ()\n\ 1967 @deftypefn {Built-in Function} {[@var{fid}, @var{msg}] =} tmpfile ()\n\
1966 Return the file ID corresponding to a new temporary file with a unique\n\ 1968 Return the file ID corresponding to a new temporary file with a unique\n\
1967 name. The file is opened in binary read/write (@code{\"w+b\"}) mode.\n\ 1969 name. The file is opened in binary read/write (@qcode{\"w+b\"}) mode.\n\
1968 The file will be deleted automatically when it is closed or when Octave\n\ 1970 The file will be deleted automatically when it is closed or when Octave\n\
1969 exits.\n\ 1971 exits.\n\
1970 \n\ 1972 \n\
1971 If successful, @var{fid} is a valid file ID and @var{msg} is an empty\n\ 1973 If successful, @var{fid} is a valid file ID and @var{msg} is an empty\n\
1972 string. Otherwise, @var{fid} is -1 and @var{msg} contains a\n\ 1974 string. Otherwise, @var{fid} is -1 and @var{msg} contains a\n\