Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.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
    • cdchanges 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 absolute directories and absolute filenames, returns relative file names
    • getshortpathnamegets short path name
    • is_absolute_pathchecks if argument is an absolute path
    • pathconvertconverts a path to an OS path format.
    • pathsepreturns path separator for current platform
    • splitURLSplit an URL (HTTP, HTTPS, FTP...)
    • 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
  • fprintfMatwrites a matrix in a file
  • fscanfMatreads a matrix from a text file
  • getURLDownload an URL (HTTP, HTTPS, FTP...)
  • getmd5get md5 checksum
  • %ioa 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
  • msscanfreads its input from the character string (interface to the C sscanf function)
  • mgetireads 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
  • mtellReturns the offset of the current byte relative to the beginning of a file
  • 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
Report an issue
<< HDF5 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:
Fri Apr 11 14:06:54 CEST 2014