#include <cerrno>
#include <cstdio>
#include <iostream>
#include <limits>
#include <stack>
#include <string>
#include <vector>
#include "file-ops.h"
#include "file-stat.h"
#include "lo-ieee.h"
#include "mkostemp-wrapper.h"
#include "oct-env.h"
#include "oct-locbuf.h"
#include "tmpfile-wrapper.h"
#include "unistd-wrappers.h"
#include "builtin-defun-decls.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "file-io.h"
#include "interpreter.h"
#include "load-path.h"
#include "oct-fstrm.h"
#include "oct-iostrm.h"
#include "oct-map.h"
#include "oct-prcstrm.h"
#include "oct-stream.h"
#include "oct-strstrm.h"
#include "ov.h"
#include "ovl.h"
#include "pager.h"
#include "sysdep.h"
#include "utils.h"
#include "variables.h"
Go to the source code of this file.
Typedefs | |
using | nargin = args.length () |
Functions | |
the second is matched to the second specifier and placed in the second column and so forth If there are more words than specifiers then the process is repeated until all words have been processed or the limit imposed by | any (non-whitespace) text in the format that is not one of these specifiers is considered a literal. If there is a literal between two format specifiers then that same literal must appear in the input stream between the matching words. The following specifiers are valid |
void | cleanup_tmp_files (void) |
static int | do_fwrite (octave::stream &os, const octave_value &data, const octave_value &prec_arg, const octave_value &skip_arg, const octave_value &arch_arg) |
OCTAVE_EXPORT octave_value_list | Ffclose (octave::interpreter &interp, const octave_value_list &args, int) ode |
OCTAVE_EXPORT octave_value_list | Ffreport (octave::interpreter &interp, const octave_value_list &args, int) and whether they are open for reading |
OCTAVE_EXPORT octave_value_list | Ffrewind (octave::interpreter &interp, const octave_value_list &args, int nargout) and -1 if an error is encountered. It is equivalent to ode |
OCTAVE_EXPORT octave_value_list | Ffwrite (octave::interpreter &interp, const octave_value_list &args, int) returning the number of values ar |
static std::ios::openmode | fopen_mode_to_ios_mode (const std::string &mode) |
if (nargin< 1||nargin > 3) print_usage() | |
if (nargin==1) = args(0).class_name () | |
if (os) retval | |
void | mark_for_deletion (const std::string &file) |
static void | normalize_fopen_mode (std::string &mode, bool &use_zlib) |
return | ovl () |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the | system (carriage-return linefeed on Windows). The default when no mode is specified is binary. Additionally |
while (ischar(s=fgets(fid))) fputs(stdout | |
Variables | |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for | amp {native} |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of | ar {mode} are able sis tem amp{r} (default) Open a file for reading. tem amp{w} Open a file for writing. The previous contents are discarded. tem amp{a} Open or create a file for writing at the end of the file. tem amp{r+} Open an existing file for reading and writing. tem amp{w+} Open a file for reading or writing. The previous contents are discarded. tem amp{a+} Open or create a file for reading or writing at the end of the file. nd table Append a code{"t"} to the mode string to open the file in text mode or a code{"b"} to open in binary mode. On Windows systems |
octave_value | arch |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance | c {matlab} |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a | code {"z"} to the mode string to open a gzipped file for reading or writing. For this to be successful |
otherwise an error message is printed The permission mask is a UNIX concept used when creating new objects on a file system such as | directories |
it returns The second form of the and any FIDs associated with gnuplot | eealso |
else | |
OCTAVE_EXPORT octave_value_list or both For | example |
OCTAVE_EXPORT octave_value_list or both For | fclose |
int | fid = -1 |
otherwise an error message is printed The permission mask is a UNIX concept used when creating new objects on a file system such as | files |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit | first |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance | however |
nd example oindent opens the file | ile {splat.dat} for reading. If necessary |
octave_value | mode |
it returns The second form of the | ode {fclose} call closes all open files except ode{stdin} |
octave::stream | os = do_stream_open (args(0), mode, arch, "fopen", fid) |
otherwise | |
returns | |
octave_value_list | retval = ovl (-1.0) |
endwhile | rint |
s | |
octave::stream_list & | streams = interp.get_stream_list () |
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several | times |
std::stack< std::string > | tmp_files |
OCTAVE_EXPORT octave_value_list | writing |
nd deftypefn *int nargin = args.length () |
Definition at line 589 of file file-io.cc.
the second is matched to the second specifier and placed in the second column and so forth If there are more words than specifiers then the process is repeated until all words have been processed or the limit imposed by any | ( | non- | whitespace | ) |
Definition at line 1499 of file file-io.cc.
References string.
Referenced by octave::jit_convert_llvm::convert_loop().
void cleanup_tmp_files | ( | void | ) |
Definition at line 96 of file file-io.cc.
References filename, octave_unlink_wrapper(), string, and tmp_files.
|
static |
Definition at line 2532 of file file-io.cc.
References arch, e, error(), flt_fmt, octave_value::int_value(), os, string, oct_data_conv::string_to_data_type(), octave::mach_info::string_to_float_format(), octave::stream::write(), and octave_value::xstring_value().
Referenced by Ffwrite().
OCTAVE_EXPORT octave_value_list Ffclose | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 207 of file file-io.cc.
OCTAVE_EXPORT octave_value_list Ffreport | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
OCTAVE_EXPORT octave_value_list Ffrewind | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 698 of file file-io.cc.
References octave::stream_list::lookup(), nargout(), os, ovl(), print_usage(), result, octave::stream::rewind(), and streams.
OCTAVE_EXPORT octave_value_list Ffwrite | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 2589 of file file-io.cc.
References arch, do_fwrite(), octave::interpreter::get_stream_list(), octave_value::is_string(), octave_value_list::length(), octave::stream_list::lookup(), os, ovl(), print_usage(), and streams.
|
static |
Definition at line 159 of file file-io.cc.
References error(), mode, retval, and octave::math::trunc().
if | ( | nargin | = =1 | ) | = args(0).class_name () |
Definition at line 598 of file file-io.cc.
if | ( | os | ) |
void mark_for_deletion | ( | const std::string & | file | ) |
Definition at line 90 of file file-io.cc.
|
static |
Definition at line 107 of file file-io.cc.
References err_disabled_feature(), mode, and use_zlib.
return ovl | ( | ) |
Referenced by Ffrewind(), Ffwrite(), and if().
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the system | ( | carriage-return linefeed on | Windows | ) |
Referenced by octave::resource_manager::config_translators(), do_edit_history(), and run_command().
Referenced by octave::jit_block::idom_intersect().
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and amp {native} |
Definition at line 587 of file file-io.cc.
successfully written to the file The argument and ar {mode} are able sis tem amp{r} (default) Open a file for reading. tem amp{w} Open a file for writing. The previous contents are discarded. tem amp{a} Open or create a file for writing at the end of the file. tem amp{r+} Open an existing file for reading and writing. tem amp{w+} Open a file for reading or writing. The previous contents are discarded. tem amp{a+} Open or create a file for reading or writing at the end of the file. nd table Append a code{"t"} to the mode string to open the file in text mode or a code{"b"} to open in binary mode. On Windows systems |
Definition at line 587 of file file-io.cc.
octave_value arch |
Definition at line 622 of file file-io.cc.
Referenced by do_fwrite(), and Ffwrite().
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the then the first element defines the pivoting tolerance for the unsymmetric the values defined such that for full and returns the permuted forms of the upper and lower triangular such that then the matrix returned by the c {matlab} |
Definition at line 587 of file file-io.cc.
Referenced by QtHandles::accelSequence(), Vt102Emulation::applyCharset(), octave_struct::as_mxArray(), octave_scalar_struct::as_mxArray(), mxArray_struct::as_octave_value(), mxArray_cell::as_octave_value(), Array< octave_value >::assign(), base_det< T >::base_det(), brace_expand(), brace_gobbler(), SparseMatrix::bsolve(), cabsq(), axes::properties::calc_ticklabels(), Sparse< T >::SparseRep::ccidx(), Sparse< T >::SparseRep::celem(), Sparse< T >::SparseRep::change_length(), charNDArray::charNDArray(), DiagArray2< Complex >::check_idx(), DiagArray2< Complex >::checkelem(), Sparse< T >::SparseRep::cidx(), Array< octave_value >::clear(), Screen::clearImage(), cntr(), octave::tree::column(), DiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::column(), FloatComplexDiagMatrix::column(), contains_char(), convolve_nd(), Matrix::determinant(), FloatMatrix::determinant(), ComplexMatrix::determinant(), FloatComplexMatrix::determinant(), DiagArray2< Complex >::DiagArray2(), dim_vector::dim_vector(), dmsolve_insert(), do_cleanup_waitfor_listener(), octave::resource_manager::do_combo_encoding(), octave::command_editor::do_decode_prompt_string(), octave::math::do_erfcinv(), octave::math::do_erfinv(), gh_manager::do_execute_callback(), octave::base_stream::do_gets(), text_label_property::do_set(), downdate(), octave::opengl_renderer::draw_patch(), octave::opengl_renderer::draw_surface(), drawcn(), TerminalView::drawContents(), octave_struct::edit_display(), edit_history_readline(), DiagArray2< Complex >::elem(), octave::math::ellipj(), octave::tree_identifier::eval_undefined_error(), expand_amble(), octave::expand_char_class(), extract_keyword(), extract_num(), Faddeeva_w(), octave_base_diag< DiagMatrix, Matrix >::fast_elem_extract(), octave_perm_matrix::fast_elem_extract(), Fdaspk(), Fdasrt(), Fdassl(), QtHandles::Utils::figureCurrentPoint(), Fisfield(), Flsode(), QtHandles::Utils::fromRgb(), SparseMatrix::fsolve(), G__glpk__(), get_line(), octave::file_info::get_line_offsets(), get_mat_data_input_line(), QConsolePrivate::getSelection(), glob_pattern_p(), glpk(), Gsymrcm(), octave::file_editor_tab::handle_char_added(), idx_vector::idx_colon_rep::idx_colon_rep(), Array< octave_value >::index(), Sparse< T >::SparseRep::indices_ok(), octave::opengl_renderer::init_gl_context(), boolMatrix::insert(), RowVector::insert(), FloatRowVector::insert(), ComplexRowVector::insert(), FloatComplexRowVector::insert(), charMatrix::insert(), boolNDArray::insert(), MSparse< Complex >::insert(), charNDArray::insert(), SparseBoolMatrix::insert(), ComplexNDArray::insert(), FloatComplexNDArray::insert(), Matrix::insert(), FloatMatrix::insert(), FloatNDArray::insert(), intNDArray< OCTAVE_INT_T >::insert(), SparseMatrix::insert(), NDArray::insert(), ComplexMatrix::insert(), FloatComplexMatrix::insert(), SparseComplexMatrix::insert(), Cell::insert(), Sparse< bool >::insert(), Array< octave_value >::insert(), DiagMatrix::inverse(), FloatDiagMatrix::inverse(), ComplexDiagMatrix::inverse(), FloatComplexDiagMatrix::inverse(), octave::sys::file_ops::is_dev_sep(), is_dir_sep(), octave::sys::file_ops::is_dir_sep(), is_imag_unit(), octave::directory_path::is_path_sep(), Array< octave_value >::is_sorted_rows(), is_superclass(), isLineChar(), kpse_tilde_expand(), kron(), lin_interpn(), octave_base_diag< DiagMatrix, Matrix >::load_ascii(), octave_float_complex_diag_matrix::load_binary(), octave_complex_diag_matrix::load_binary(), octave_float_diag_matrix::load_binary(), octave_diag_matrix::load_binary(), lookup_classes(), make_complex_scalar_format(), make_format(), octave::opengl_renderer::make_marker_list(), make_valid_identifier(), mark_facets(), max(), octave::maybe_compound_binary_expression(), Sparse< T >::SparseRep::maybe_compress(), min(), Sparse< T >::SparseRep::nnz(), oct_fill_float_randg(), oct_fill_randg(), octave_class::octave_class(), octave_is_big_endian(), octave::octave_jit_cast_any_complex(), octave_kbhit(), octave_print_internal(), octave_write_complex(), octave_write_float_complex(), color_values::operator!=(), DiagArray2< Complex >::operator()(), operator*(), ComplexDiagMatrix::operator+=(), FloatComplexDiagMatrix::operator+=(), color_values::operator=(), color_values::operator==(), c_file_ptr_buf::overflow(), gzfilebuf::overflow(), c_zfile_ptr_buf::overflow(), Array< octave_value >::page(), c_file_ptr_buf::pbackfail(), c_zfile_ptr_buf::pbackfail(), gzfilebuf::pbackfail(), pr_plus_format(), octave::tree_print_code::print_comment_elt(), octave::ft_text_renderer::process_character(), octave::scanf_format_list::process_conversion(), octave::textscan_format_list::process_conversion(), DiagMatrix::pseudo_inverse(), FloatDiagMatrix::pseudo_inverse(), ComplexDiagMatrix::pseudo_inverse(), FloatComplexDiagMatrix::pseudo_inverse(), read_maps(), read_mat_ascii_data(), read_mat_binary_data(), read_until_newline(), Emulation::receiveChar(), DiagArray2< Complex >::resize(), Sparse< bool >::resize(), Array< octave_value >::resize2(), DiagMatrix::row(), FloatDiagMatrix::row(), ComplexDiagMatrix::row(), FloatComplexDiagMatrix::row(), charMatrix::row_as_string(), octave::math::rsf2csf< ComplexMatrix, Matrix >(), octave::math::rsf2csf< FloatComplexMatrix, FloatMatrix >(), octave_float_complex::save_ascii(), octave_complex::save_ascii(), octave_float_complex_diag_matrix::save_binary(), octave_complex_diag_matrix::save_binary(), octave_float_diag_matrix::save_binary(), octave_diag_matrix::save_binary(), QConsolePrivate::sendConsoleText(), octave::text_renderer::string::set_code(), octave::text_renderer::set_color(), octave::opengl_renderer::set_color(), octave::text_renderer::string::set_color(), octave::ft_text_renderer::set_color(), octave::call_stack::set_column(), octave::tree_statement::set_command(), octave::command_editor::set_completion_append_character(), set_component(), octave::tree::set_location(), octave::tree_statement::set_location(), octave::call_stack::set_location(), octave::octave_qscintilla::set_selection_marker_color(), Screen::ShowCharacter(), single_num(), octave::single_type_concat(), skip_comments(), skip_preceeding_newline(), skip_until_newline(), octave::base_stream::skipl(), Array< octave_value >::sort_rows_idx(), Sparse< bool >::Sparse(), sparse_indices_ok(), Sparse< T >::SparseRep::SparseRep(), string_array_property::string_array_property(), octave::tree_evaluator::string_fill_char(), SparseBoolMatrix::sum(), Sylvester(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), octave::opengl_tesselator::tess_combine(), text_element_subscript::text_element_subscript(), text_element_superscript::text_element_superscript(), text_label_property::text_label_property(), QtHandles::Utils::toRgb(), SparseMatrix::trisolve(), octave_float_complex_matrix::try_narrowing_conversion(), octave_complex_matrix::try_narrowing_conversion(), octave_sparse_complex_matrix::try_narrowing_conversion(), c_file_ptr_buf::underflow_common(), c_zfile_ptr_buf::underflow_common(), TerminalView::updateImage(), Vinvfx(), octave::warn_glyph_render(), octave::warn_missing_glyph(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve(), DiagArray2< Complex >::xelem(), xgemm(), xisascii(), and Sparse< T >::SparseRep::~SparseRep().
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a code {"z"} to the mode string to open a gzipped file for reading or writing. For this to be successful |
Definition at line 587 of file file-io.cc.
otherwise an error message is printed The permission mask is a UNIX concept used when creating new objects on a file system such as directories |
Definition at line 3038 of file file-io.cc.
Definition at line 207 of file file-io.cc.
else |
Definition at line 632 of file file-io.cc.
OCTAVE_EXPORT octave_value_list or both For example |
Definition at line 676 of file file-io.cc.
OCTAVE_EXPORT octave_value_list or both For fclose |
Definition at line 676 of file file-io.cc.
Referenced by octave_procbuf::close(), octave::CFile::close(), close_fcn(), BlockArray::decreaseBuffer(), c_file_ptr_buf::file_close(), BlockArray::increaseBuffer(), QConsolePrivate::log(), oct_init_by_entropy(), octave_procbuf::open(), BlockArray::setHistorySize(), and octave::CFile::~CFile().
int fid = -1 |
Definition at line 625 of file file-io.cc.
Referenced by octave::stream_list::clear(), octave_zstdiostream::create(), octave::err_invalid_file_id(), octave::stream_list::get_file_number(), octave::stream_list::get_info(), octave::sys::file_fstat::get_stats(), octave::stream_list::lookup(), octave_fstat_wrapper(), octave_wait_for_input(), octave::sys::file_fstat::operator=(), octave::stream_list::remove(), and run_command_and_return_output().
otherwise an error message is printed The permission mask is a UNIX concept used when creating new objects on a file system such as files |
Definition at line 3038 of file file-io.cc.
Referenced by F__ftp_mput__(), octave::QUIWidgetCreator::filedialog_finished(), and octave::base_url_transfer::mput_directory().
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit first |
Definition at line 587 of file file-io.cc.
Referenced by octave::opengl_renderer::patch_tesselator::begin(), bisearch(), octave::jit_convert_llvm::convert(), drawcn(), octave::jit_info::execute(), octave::jit_info::match(), symbol_info_list::parse_whos_line_format(), octave::variable_dock_widget::variable_dock_widget(), and octave::opengl_renderer::patch_tesselator::vertex().
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance however |
Definition at line 587 of file file-io.cc.
Definition at line 587 of file file-io.cc.
octave_value mode |
Definition at line 619 of file file-io.cc.
Referenced by fopen_mode_to_ios_mode(), and normalize_fopen_mode().
successfully written to the file The argument and and are interpreted as described for ode {fclose} call closes all open files except ode{stdin} |
Definition at line 207 of file file-io.cc.
octave::stream os = do_stream_open (args(0), mode, arch, "fopen", fid) |
Definition at line 627 of file file-io.cc.
Referenced by octave_ostrstream::bad(), axes::properties::calc_ticklabels(), octave_ostrstream::clear(), octave::stream_list::clear(), octave::base_stream::clearerr(), octave::curl_transfer::curl_transfer(), octave::load_path::display(), octave::load_path::package_info::display(), symbol_info_list::display(), symbol_info_list::symbol_info::display_line(), do_fwrite(), octave::base_stream::do_numeric_printf_conv(), octave_sparse_params::do_print_info(), octave::base_stream::do_printf(), octave::do_printf_conv(), octave::do_printf_string(), do_save(), dump_octave_core(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), octave_ostrstream::eof(), error_1(), Ffrewind(), Ffwrite(), octave::base_stream::flush(), octave::url_transfer::get(), octave::curl_transfer::get(), octave::stream_list::get_file_number(), octave::stream_list::get_info(), figure::properties::get_title(), octave_base_value::indent(), octave::curl_transfer::init(), octave::stream_list::insert(), octave::jit_print(), string_vector::list_in_columns(), octave::stream_list::list_open_files(), octave::url_handle_manager::make_url_handle(), octave_base_value::newline(), octave_print_diag_matrix_internal(), octave_print_free(), octave_print_internal(), octave_print_internal_template(), octave_print_matrix_internal(), octave_write_complex(), octave_write_double(), octave_write_float(), octave_write_float_complex(), octave::sys::operator<<(), octave::operator<<(), operator<<(), octave_ostream::output_stream(), octave_ostrstream::output_stream(), pr_any_float(), pr_col_num_header(), pr_float(), pr_imag_float(), pr_int(), pr_plus_format(), pr_plus_format_matrix(), pr_scale_header(), pr_where(), pr_where_1(), pr_where_2(), octave::tree_funcall::print(), octave::tree_fcn_handle::print(), octave_magic_colon::print(), octave::tree_constant::print(), octave_oncleanup::print(), octave_fcn_inline::print(), octave_struct::print(), octave_base_scalar< bool >::print(), octave_lazy_index::print(), octave_cell::print(), octave_fcn_handle::print(), idx_vector::idx_colon_rep::print(), octave_base_sparse< SparseComplexMatrix >::print(), octave_base_matrix< boolNDArray >::print(), octave::jit_block_list::print(), octave_class::print(), idx_vector::idx_range_rep::print(), octave_base_diag< DiagMatrix, Matrix >::print(), octave_perm_matrix::print(), octave_scalar_struct::print(), octave_range::print(), idx_vector::idx_scalar_rep::print(), idx_vector::idx_vector_rep::print(), idx_vector::idx_mask_rep::print(), octave::jit_argument::print(), octave::jit_const< T, EXTRACT_T, PASS_T, QUOTE >::print(), idx_vector::print(), octave::jit_block::print(), octave::jit_variable::print(), octave::jit_assign::print(), octave::jit_phi::print(), octave::jit_branch::print(), octave::jit_cond_branch::print(), octave::jit_call::print(), octave_value::print(), octave::jit_error_check::print(), octave::jit_magic_end::print(), octave::jit_extract_argument::print(), octave::jit_store_argument::print(), octave::jit_return::print(), octave_classdef::print(), octave::jit_instruction::print_argument(), octave::jit_cond_branch::print_cond(), print_descriptor(), octave::jit_block_list::print_dom(), octave::jit_block::print_dom(), print_empty_matrix(), print_empty_nd_array(), octave::load_path::package_info::print_fcn_list(), octave::jit_value::print_indent(), octave_sparse_params::print_info(), PermMatrix::print_info(), octave_lazy_index::print_info(), octave_base_sparse< SparseComplexMatrix >::print_info(), octave_base_matrix< boolNDArray >::print_info(), DiagArray2< Complex >::print_info(), octave_base_diag< DiagMatrix, Matrix >::print_info(), octave_perm_matrix::print_info(), Sparse< bool >::print_info(), octave_base_value::print_info(), Array< octave_value >::print_info(), octave_value::print_info(), octave_struct::print_name_tag(), octave_base_scalar< bool >::print_name_tag(), octave_cell::print_name_tag(), octave_class::print_name_tag(), octave_scalar_struct::print_name_tag(), octave_range::print_name_tag(), octave_base_value::print_name_tag(), octave_value::print_name_tag(), print_nd_array(), octave::tree_funcall::print_raw(), octave::tree_fcn_handle::print_raw(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::print_raw(), octave_magic_colon::print_raw(), octave::tree_constant::print_raw(), octave_oncleanup::print_raw(), octave_fcn_inline::print_raw(), octave_struct::print_raw(), octave_base_scalar< bool >::print_raw(), octave_char_matrix_str::print_raw(), octave_cell::print_raw(), octave_fcn_handle::print_raw(), octave_base_sparse< SparseComplexMatrix >::print_raw(), octave_char_matrix::print_raw(), octave_float_complex_matrix::print_raw(), octave_complex_matrix::print_raw(), octave_class::print_raw(), octave_float_matrix::print_raw(), octave_base_diag< DiagMatrix, Matrix >::print_raw(), octave_lazy_index::print_raw(), octave_perm_matrix::print_raw(), octave_bool_matrix::print_raw(), octave_matrix::print_raw(), octave_scalar_struct::print_raw(), octave_range::print_raw(), octave_value::print_raw(), octave_classdef::print_raw(), octave::jit_terminator::print_successor(), octave::load_path::package_info::print_types(), octave_class::print_with_name(), octave_value::print_with_name(), octave::base_stream::puts(), octave_ostrstream::rdbuf(), octave::stream_list::remove(), octave_fcn_inline::save_ascii(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::save_ascii(), octave_fcn_handle::save_ascii(), octave_struct::save_ascii(), octave_float_complex_matrix::save_ascii(), octave_cell::save_ascii(), octave_complex_matrix::save_ascii(), octave_char_matrix_str::save_ascii(), octave_base_int_scalar< OCTAVE_INT_T >::save_ascii(), octave_float_complex::save_ascii(), octave_base_sparse< SparseComplexMatrix >::save_ascii(), octave_complex::save_ascii(), octave_class::save_ascii(), octave_float_matrix::save_ascii(), octave_base_diag< DiagMatrix, Matrix >::save_ascii(), octave_lazy_index::save_ascii(), octave_bool_matrix::save_ascii(), octave_perm_matrix::save_ascii(), octave_matrix::save_ascii(), octave_bool::save_ascii(), octave_float_scalar::save_ascii(), octave_scalar::save_ascii(), octave_scalar_struct::save_ascii(), octave_range::save_ascii(), octave_value::save_ascii(), octave_fcn_inline::save_binary(), octave_float_complex_diag_matrix::save_binary(), octave_complex_diag_matrix::save_binary(), octave_float_diag_matrix::save_binary(), octave_base_int_matrix< intNDArray< OCTAVE_INT_T > >::save_binary(), octave_diag_matrix::save_binary(), octave_sparse_bool_matrix::save_binary(), octave_fcn_handle::save_binary(), octave_sparse_complex_matrix::save_binary(), octave_struct::save_binary(), octave_sparse_matrix::save_binary(), octave_float_complex_matrix::save_binary(), octave_cell::save_binary(), octave_complex_matrix::save_binary(), octave_char_matrix_str::save_binary(), octave_base_int_scalar< OCTAVE_INT_T >::save_binary(), octave_float_complex::save_binary(), octave_complex::save_binary(), octave_class::save_binary(), octave_float_matrix::save_binary(), octave_lazy_index::save_binary(), octave_bool_matrix::save_binary(), octave_perm_matrix::save_binary(), octave_matrix::save_binary(), octave_bool::save_binary(), octave_float_scalar::save_binary(), octave_scalar::save_binary(), octave_scalar_struct::save_binary(), octave_range::save_binary(), octave_value::save_binary(), save_binary_data(), save_fields(), save_hdf5_data(), save_mat5_binary_element(), save_mat_ascii_data(), save_mat_binary_data(), save_text_data(), save_text_data_for_plotting(), save_three_d(), save_vars(), octave::url_transfer::set_ostream(), octave::curl_transfer::set_ostream(), octave::variable_editor_model::setData(), octave_base_scalar< bool >::short_disp(), octave_char_matrix_str::short_disp(), octave_cell::short_disp(), octave_base_matrix< boolNDArray >::short_disp(), octave_base_diag< DiagMatrix, Matrix >::short_disp(), octave_perm_matrix::short_disp(), octave_range::short_disp(), octave_base_value::short_disp(), octave_value::short_disp(), octave::jit_value::short_print(), octave::jit_instruction::short_print(), octave::jit_block::short_print(), octave::jit_assign_base::short_print(), octave::jit_magic_end::short_print(), octave::stream::skip_bytes(), octave_ostrstream::str(), validate_property_name(), verror(), octave_float_complex_matrix::write(), octave_complex_matrix::write(), octave_char_matrix_str::write(), octave_float_complex::write(), octave_complex::write(), octave_float_matrix::write(), octave_base_diag< DiagMatrix, Matrix >::write(), octave_lazy_index::write(), octave_bool_matrix::write(), octave_perm_matrix::write(), octave_matrix::write(), octave_bool::write(), octave_float_scalar::write(), octave_scalar::write(), octave_range::write(), OCTAVE_VALUE_INT_MATRIX_T::write(), OCTAVE_VALUE_INT_SCALAR_T::write(), octave::stream::write_bytes(), write_doubles(), write_floats(), write_header(), write_mat5_array(), write_mat5_cell_array(), write_mat5_integer_data(), and write_mat5_sparse_index_vector().
otherwise |
Definition at line 207 of file file-io.cc.
returns |
Definition at line 207 of file file-io.cc.
return retval = ovl (-1.0) |
Definition at line 594 of file file-io.cc.
Referenced by fopen_mode_to_ios_mode(), and if().
endwhile rint |
Definition at line 2729 of file file-io.cc.
s |
Definition at line 2729 of file file-io.cc.
Referenced by octave::sys::env::absolute_pathname(), absolute_pathname(), QtHandles::accelSequence(), octave::command_history::add(), octave::bp_table::add_breakpoint_1(), almost_match(), octave::tree_argument_list::append(), octave::comment_list::append(), octave::base_list< text_element *>::append(), string_vector::append(), octave::base_lexer::comment_buffer::append(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::bad(), octave::sys::env::base_pathname(), basename(), octave::sys::blas_version(), Cell::Cell(), charNDArray::charNDArray(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::clear(), DiagMatrix::column(), FloatDiagMatrix::column(), ComplexDiagMatrix::column(), FloatComplexDiagMatrix::column(), caseless_str::compare(), octave_sparse_matrix::convert_to_str_internal(), octave_bool::convert_to_str_internal(), octave::command_editor::decode_prompt_string(), octave::sys::env::do_absolute_pathname(), octave::sys::env::do_base_pathname(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::do_close(), octave::command_editor::do_decode_prompt_string(), gh_manager::do_execute_callback(), do_leftdiv_dm_sm(), octave::sys::env::do_make_absolute(), do_mul_sm_dm(), do_rand(), do_regexp_ptn_string_escapes(), do_regexp_rep_string_escapes(), do_rightdiv_sm_dm(), octave::sys::env::do_rooted_relative_pathname(), octave_rand::do_seed(), radio_property::do_set(), color_property::do_set(), double_radio_property::do_set(), octave::sys::env::do_set_program_name(), octave_rand::do_state(), QConsolePrivate::drawText(), EigsComplexNonSymmetricFunc(), EigsComplexNonSymmetricMatrix(), EigsComplexNonSymmetricMatrixShift(), EigsRealNonSymmetricFunc(), EigsRealNonSymmetricMatrix(), EigsRealNonSymmetricMatrixShift(), EigsRealSymmetricFunc(), EigsRealSymmetricMatrix(), EigsRealSymmetricMatrixShift(), ends_with(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::eof(), err_wrong_type_arg(), octave::sys::env::error(), octave::command_history::error(), octave::command_editor::error(), octave::expand_char_class(), extract_function(), F77_FUNC(), Fcolloc(), octave::scanf_format_list::finish_conversion(), octave::printf_format_list::finish_conversion(), octave::textscan_format_list::finish_conversion(), for(), QtHandles::Utils::fromStdString(), Fsqrtm(), G__osmesa_print__(), mxArray_octave_value::get_class_name(), octave_rand::get_internal_state(), Givens(), gnu_readline(), gripe_wrong_type_arg(), Gsymrcm(), hexdump(), if(), schur< T >::init(), octave::jit_convert::initialize(), initialize_command_input(), octave_rand::initialize_mersenne_twister(), Vt102Emulation::initTokenizer(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::input_stream(), charMatrix::insert(), interactive_input(), is_true(), jstring_to_string(), QWinTerminalImpl::keyPressEvent(), keyword_almost_match(), kpse_expand(), octave::sys::lapack_version(), link(), octave_char_matrix_str::load_hdf5(), octave::textscan::lookahead(), Matrix::lssolve(), FloatMatrix::lssolve(), ComplexMatrix::lssolve(), FloatComplexMatrix::lssolve(), octave::sys::env::make_absolute(), max_axes_scale(), idx_vector::maybe_reduce(), mexErrMsgTxt(), mexEvalString(), mexEvalStringWithTrap(), mexWarnMsgTxt(), more_than_a_screenful(), octave::load_path::package_info::move(), mx_inline_fill(), mx_inline_xsum(), null(), oct_init_by_int(), octave_print_internal(), octregexp(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), caseless_str::operator<(), operator<<(), string_vector::operator=(), octave::text_renderer::string::operator=(), scaler::operator=(), octave::stream::operator=(), octave::sys::strptime::operator=(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::output_stream(), text_parser::parse(), text_parser_none::parse(), octave::textscan::parse_options(), plus_or_minus(), pr_any_float(), prepend_home_dir(), prepend_octave_exec_home(), octave::config::prepend_octave_exec_home(), prepend_octave_home(), octave::config::prepend_octave_home(), octave_fcn_handle::print_raw(), octave::printf_format_list::printf_format_list(), octave::scanf_format_list::process_conversion(), octave::printf_format_list::process_conversion(), octave::textscan_format_list::process_conversion(), octave::tree_evaluator::PS4(), octave::base_list< text_element *>::push_back(), octave::base_list< text_element *>::push_front(), octave::base_stream::puts(), octave::stream::puts(), quote_path(), rational_approx(), raw_mode(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::rdbuf(), read_binary_data(), octave::command_editor::read_octal(), Vt102Emulation::receiveChar(), octave::sys::env::rooted_relative_pathname(), DiagMatrix::row(), FloatDiagMatrix::row(), ComplexDiagMatrix::row(), FloatComplexDiagMatrix::row(), octave::math::rsf2csf< ComplexMatrix, Matrix >(), octave::math::rsf2csf< FloatComplexMatrix, FloatMatrix >(), octave_fcn_inline::save_hdf5(), octave_cell::save_hdf5(), octave_char_matrix_str::save_hdf5(), save_mat5_binary_element(), save_mat_binary_data(), octave::textscan::scan_complex(), octave::scanf_format_list::scanf_format_list(), octave_rand::seed(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::seek(), QtHandles::GLCanvas::selectFromAxes(), QConsolePrivate::sendConsoleText(), Vt102Emulation::sendString(), QWinTerminalImpl::sendText(), octave::directory_path::set(), octave::command_editor::set_basic_quote_characters(), octave::command_editor::set_basic_word_break_characters(), octave::command_editor::set_completer_quote_characters(), octave::command_editor::set_completer_word_break_characters(), octave::command_editor::set_filename_quote_characters(), octave_rand::set_internal_state(), octave::opengl_renderer::set_linestyle(), base_property::set_name(), octave::sys::env::set_program_name(), octave::text_renderer::string::set_string(), setcompression(), octave::file_editor_tab::show_auto_completion(), single_match_exists(), Sparse< bool >::Sparse(), starts_with(), octave_user_function::stash_function_name(), octave::tree_constant::stash_original_text(), octave_rand::state(), oct_data_conv::string_to_data_type(), octave::mach_info::string_to_float_format(), string_array_property::string_value(), string_vector::string_vector(), octave_cell::string_vector_value(), strip_spaces(), strsave(), octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::tell(), octave::textscan_format_list::textscan_format_list(), tilde_find_prefix(), tilde_find_suffix(), octave::sys::time::time(), times_or_divide(), times_or_divides(), QtHandles::Utils::toStdString(), QtHandles::Utils::toStringVector(), translateKey(), octave::tree_statement_list::tree_statement_list(), axes::properties::update_aspectratios(), axes::properties::update_camera(), octave::file_editor_tab::update_lexer_settings(), valid_identifier(), octave::ft_text_renderer::visit(), c_file_ptr_buf::xsgetn(), c_zfile_ptr_buf::xsgetn(), c_file_ptr_buf::xsputn(), c_zfile_ptr_buf::xsputn(), octave::sys::base_tm::zone(), and octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>::~octave_tstdiostream().
OCTAVE_EXPORT octave_value_list or both For is_valid_file_id nd deftypefn *octave::stream_list & streams = interp.get_stream_list () |
Definition at line 596 of file file-io.cc.
Referenced by Fdup2(), Ffrewind(), Ffwrite(), and if().
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several times |
Definition at line 587 of file file-io.cc.
Referenced by install_class_ops().
std::stack<std::string> tmp_files |
Definition at line 87 of file file-io.cc.
Referenced by cleanup_tmp_files(), and mark_for_deletion().
OCTAVE_EXPORT octave_value_list writing |
Definition at line 676 of file file-io.cc.