Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
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.
    • 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
  • 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
  • msscanfreads its input from the character string (interface to the C sscanf function)
  • mgetiparses numbers in a binary file and returns them as encoded integers
  • 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
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:23:28 CET 2022