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


Files : Input/Output functions

  • Directory
    • chdirchanges 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
    • 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.
    • pathsepprovides the path separator used in the PATH environment variable of the current OS.
    • splitURLSplit an URL (HTTP, HTTPS, FTP...)
    • tempnamecreates a file with an unique filename
  • compressCompress files in an archive
  • decompressdecompress files from an archive
  • 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
  • hashget checksum of file or string using various digest algorithms
  • %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 opened files
  • meofchecks if end of file has been reached
  • merrortests the file access errors indicator
  • mfprintfconverts, formats, and writes data to a file
  • mfscanfreads input from the stream pointer stream (interface to the C fscanf function)
  • mgetparses numbers in a binary file and returns them as decimals
  • mgetlreads lines from an text file
  • mgetstrreads a character string from a file
  • mopenopens files in Scilab
  • mputwrites byte or word in a given binary format
  • mputlwrites strings in a text file
  • mputstrwrite a single text in an open 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-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:
Tue Oct 24 14:30:04 CEST 2023