Scilab Website | Contribute with GitLab | Scilab Community | ATOMS toolboxes
Scilab Online Help
5.4.0 - English

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

Please note that the recommended version of Scilab is 2026.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab help >> Files : Input/Output functions

Files : Input/Output functions

  • Directory
    • chdir — changes Scilab current directory
    • createdir — makes new directory
    • dir — gets file list
    • isdir — checks if argument is a directory path
    • ls — shows files
    • mkdir — makes a new directory
    • pwd — gets Scilab current directory
    • removedir — removes a directory
    • rmdir — removes a directory
  • Paths - Filenames
    • basename — strip directory and suffix from filenames
    • dirname — gets directory from filenames
    • fileext — returns extension for a file path
    • fileparts — returns the path, filename and extension for a file path
    • filesep — returns directory separator for current platform
    • fullfile — builds a full filename from parts
    • fullpath — creates an full path name for the specified relative path name.
    • get_absolute_file_path — gives an absolute pathname of a file opened in Scilab
    • getdrives — gets the drive letters of all mounted filesystems on the computer
    • getlongpathname — gets long path name
    • getrelativefilename — given an absolute directory and an absolute filename, returns a relative file name
    • getshortpathname — gets short path name
    • pathconvert — pathnames convertion between POSIX and Windows.
    • pathsep — returns path separator for current platform
    • tempname — creates a file with an unique filename
  • copyfile — copies a file
  • deletefile — deletes a file
  • dispfiles — displays opened files properties
  • fileinfo — provides information about a file
  • findfiles — finding all files with a given file specification
  • fprintf — Emulator of C language fprintf function. This function is obsolete.
  • fprintfMat — writes a matrix in a file
  • fscanf — converts formatted input read on a file. This function is obsolete.
  • fscanfMat — reads a matrix from a text file
  • getmd5 — get md5 checksum
  • percentio — a variable, which keeps standard input and standard output (file descriptor)
  • isfile — checks whether argument is an existing file
  • listfiles — list of files
  • listvarinfile — list of variables in a saved data file
  • maxfiles — sets the limit for the number of files a Scilab is allowed to have open simultaneously
  • mclearerr — resets binary file access errors
  • mclose — closes an opened file
  • mdelete — deletes file(s)
  • meof — checks if end of file has been reached
  • merror — tests the file access errors indicator
  • mfprintf — converts, formats, and writes data to a file
  • mfscanf — reads its input from the character string (interface to the C sscanf function)
  • mget — reads byte or word in a given binary format and returns an int type
  • mgetl — reads lines from an text file
  • mgetstr — reads a character string from a file
  • mopen — opens a file in Scilab
  • movefile — moves file or directory
  • mput — writes byte or word in a given binary format
  • mputl — writes strings in a text file
  • mputstr — writes a character string in a file
  • mseek — sets current position in a binary file
  • mtell — binary file management
  • newest — returns newest file of a set of files
  • save_format — format of files produced by "save"
  • scanf — converts formatted input on standard input
  • scanf_conversion — mscanf, msscanf, mfscanf conversion specifications
  • sscanf — converts formatted input given by a string. This function is obsolete.
Report an issue
<< XML Management Scilab help Input/Output functions >>

Copyright (c) 2022-2026 (Dassault Systèmes S.E.)
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 Oct 01 17:34:52 CEST 2012