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

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

Please note that the recommended version of Scilab is 2024.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 that a path points to an existing directory
    • lsshows files
    • mkdirmakes a new directory
    • pwdgets Scilab current directory
    • removedirremoves a directory
    • rmdirremoves a directory
  • file_system
    • copyfilecopies a file
    • deletefiledeletes a file
    • fileinfoprovide information about some files of any type
    • findfilesfinding all files with a given file specification
    • isfilechecks whether argument is an existing file
    • listfileslist of files
    • mdeletedeletes file(s)
    • movefilemoves file or directory
    • newestreturns newest file of a set of files
  • Paths - Filenames
    • basenamestrip directory and suffix from filenames
    • dirnamegets directory from filenames (obsolete)
    • 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
  • dispfilesdisplays properties of opened files
  • fprintfMatwrites a matrix in a file
  • fscanfMatreads a matrix from a text file
  • getURLDownload an URL (HTTP, HTTPS, FTP...)
  • getmd5get md5 checksum
  • %ioprotected variable providing ids of the standard input and standard output
  • listvarinfilelists variables stored in a binary archive (names, types, sizes..)
  • mclearerrresets binary file access errors
  • mclosecloses an opened file
  • 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
  • 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
  • save formatformat of files produced by "save"
  • scanfconverts formatted input on standard input
  • scanf_conversionmscanf, msscanf, mfscanf conversion specifications
Report an issue
<< HDF5 files Scilab Help Input/Output functions >>

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:49:20 CET 2020