Scilab Website | Contribute with GitLab | Mailing list archives | 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 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

  • Directory
    • chdirchanges Scilab current directory
    • createdirmakes new directory
    • dirgets file list
    • isdirchecks if argument is a directory path
    • lsshows files
    • mkdirmakes a new directory
    • pwdgets Scilab current directory
    • removedirremoves a directory
    • rmdirremoves a directory
  • Paths - Filenames
    • basenamestrip directory and suffix from filenames
    • dirnamegets directory from filenames
    • fileextreturns extension for a file path
    • filepartsreturns the path, filename and extension for a file path
    • filesepreturns directory separator for current platform
    • fullfilebuilds a full filename from parts
    • fullpathcreates an full path name for the specified relative path name.
    • get_absolute_file_pathgives an absolute pathname of a file opened in Scilab
    • getdrivesgets the drive letters of all mounted filesystems on the computer
    • getlongpathnamegets long path name
    • getrelativefilenamegiven an absolute directory and an absolute filename, returns a relative file name
    • getshortpathnamegets short path name
    • pathconvertpathnames convertion between POSIX and Windows.
    • pathsepreturns path separator for current platform
    • tempnamecreates a file with an unique filename
  • copyfilecopies a file
  • deletefiledeletes a file
  • dispfilesdisplays opened files properties
  • fileinfoprovides information about a file
  • findfilesfinding all files with a given file specification
  • fprintfEmulator of C language fprintf function. This function is obsolete.
  • fprintfMatwrites a matrix in a file
  • fscanfconverts formatted input read on a file. This function is obsolete.
  • fscanfMatreads a matrix from a text file
  • getmd5get md5 checksum
  • percentioa variable, which keeps standard input and standard output (file descriptor)
  • isfilechecks whether argument is an existing file
  • listfileslist of files
  • listvarinfilelist of variables in a saved data file
  • maxfilessets the limit for the number of files a Scilab is allowed to have open simultaneously
  • mclearerrresets binary file access errors
  • mclosecloses an opened file
  • mdeletedeletes file(s)
  • meofchecks 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 and returns an int type
  • mgetlreads lines from an text file
  • mgetstrreads a character string from a file
  • mopenopens a file in Scilab
  • movefilemoves file or directory
  • mputwrites byte or word in a given binary format
  • mputlwrites strings in a text file
  • mputstrwrites a character string in a file
  • mseeksets current position in a binary file
  • mtellbinary file management
  • newestreturns newest file of a set of files
  • save_formatformat of files produced by "save"
  • scanfconverts formatted input on standard input
  • scanf_conversionmscanf, msscanf, mfscanf conversion specifications
  • sscanfconverts formatted input given by a string. This function is obsolete.
Report an issue
<< XML Management 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:
Mon Oct 01 17:34:52 CEST 2012