Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - English

Change language to:
Français - 日本語 - Português

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

Scilab help >> Files : Input/Output functions

Files : Input/Output functions

  • basenamestrip directory and suffix from filenames
  • chdirchanges Scilab current directory
  • copyfileCopy file
  • createdirMake new directory
  • deletefiledelete a file
  • dirget file list
  • dirnameget directory from filenames
  • dispfilesdisplay opened files properties
  • fileextreturns extension for a file path
  • fileinfoProvides information about a file
  • filepartsreturns the path, filename and extension for a file path
  • filesepreturns directory separator for current platform
  • findfilesFinding all files with a given filespec
  • fprintfEmulator of C language fprintf function
  • fprintfMatWrite a matrix in a file.
  • fscanfConverts formatted input read on a file
  • fscanfMatReads a Matrix from a text file.
  • fullfileBuild a full filename from parts
  • fullpathCreates an full path name for the specified relative path name.
  • get_absolute_file_pathGiven an absolute pathname of a file opened in scilab.
  • getdrivesGet the drive letters of all mounted filesystems on the computer.
  • getlongpathnameget long path name (Only for Windows)
  • getrelativefilenameGiven an absolute directory and an absolute filename, returns a relative file name.
  • getshortpathnameget short path name (Only for Windows)
  • percentiovariable returns standard input and standard output (file descriptor).
  • isdirchecks if argument is a directory path
  • isfilechecks if argument is a file
  • listfileslist files
  • listvarinfilelist the contents of a saved data file
  • lsshow files
  • maxfilessets the limit for the number of files a scilab is allowed to have open simultaneously.
  • mclearerrreset binary file access errors
  • mcloseclose an opened file
  • mdeleteDelete file(s)
  • meofcheck if end of file has been reached
  • merrortests the file access errors indicator
  • mfprintfconverts, formats, and writes data to a file
  • mfscanfreads its input from the character string (interface to the C sscanf function)
  • mgetreads byte or word in a given binary format return an int type
  • mgetlread lines from an text file
  • mgetstrread a character string from a file
  • mkdirMake new directory
  • mopenopen a file
  • movefileMove file or directory
  • mputwrites byte or word in a given binary format
  • mputlwrites strings in an ascii file
  • mputstrwrite a character string in a file
  • mseekset current position in binary file.
  • mtellbinary file management
  • newestreturns newest file of a set of files
  • pathconvertpathnames convertion between POSIX and windows.
  • pathsepreturns path separator for current platform
  • pwdget Scilab current directory
  • removedirRemove a directory
  • rmdirRemove a directory
  • save_formatformat of files produced by "save"
  • scanfConverts formatted input on standard input
  • scanf_conversionscanf, sscanf, fscanf conversion specifications
  • sscanfConverts formatted input given by a string
<< Symbolic Scilab help Input/Output functions >>

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:
Thu Mar 03 10:59:44 CET 2011