Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2023.1.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Arquivos : funções de Entrada/Saída > %io


protected variable providing ids of the standard input and standard output




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

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

File descriptor 0 is the standard error.


mfprintf(%io(2),'Scilab stdout (C)');
mfprintf(0,'Scilab stderr (C)');
write(%io(2),'Scilab stdout (Fortran)');
write(0,'Scilab stderr (Fortran)');

See also

  • getio — retorno de unidades lógicas de entrada/saída do Scilab
  • consolebox — shows or hides the MS Windows terminal running the Scilab session
  • write — Escrita em arquivo formatado
  • mprintf — converts, formats, and writes data to the main scilab window
  • file — Gerenciamento de arquivos
  • dispfiles — displays properties of opened files


6.0.0 %io is now protected (read-only).
Report an issue
<< getURL Arquivos : funções de Entrada/Saída listvarinfile >>

Copyright (c) 2022-2023 (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:
Tue Feb 25 08:52:31 CET 2020