Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - Français


%io

protected variable providing ids of the standard input and standard output

Syntax

%io(1)
%io(2)

Description

%io(1) returns standard input (file descriptor 5).

%io(2) returns standard output (file descriptor 6).

File descriptor 0 is the standard error.

Examples

mfprintf(%io(2),'Scilab stdout (C)');
mfprintf(0,'Scilab stderr (C)');
write(%io(2),'Scilab stdout (Fortran)');
write(0,'Scilab stderr (Fortran)');
[units,typ,names]=file()

See also

  • getio — get Scilab input/output logical units
  • consolebox — affiche ou cache le terminal Windows de lancement de Scilab
  • write — writes real numbers or strings in the console or in a formatted file
  • mprintf — converts, formats, and writes data to the main scilab window
  • file — file management
  • dispfiles — displays properties of opened files

History

VersionDescription
6.0.0 %io is now protected (read-only).
Report an issue
<< hash Entrées/Sorties [fichiers] listvarinfile >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:39:43 CEST 2023