Scilab 5.3.3
- Aide Scilab
- Entrées/Sorties [fichiers]
- chdir
- fullfile
- getlongpathname
- getshortpathname
- mkdir
- pwd
- rmdir
- basename
- copyfile
- createdir
- deletefile
- dir
- dirname
- dispfiles
- fileext
- fileinfo
- fileparts
- filesep
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- fullpath
- get_absolute_file_path
- getdrives
- getrelativefilename
- %io
- isdir
- isfile
- listfiles
- listvarinfile
- ls
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- pathconvert
- pathsep
- removedir
- save_format
- scanf
- scanf_conversion
- sscanf
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
newest
returns newest file of a set of files
Calling Sequence
k=newest(paths) k=newest(path1,path2,...,pathn)
Arguments
- k
the index of the newest file
- paths
a character string vector, paths(i) is the pathname of ith file
- pathi
a character string, the pathname of ith file
Description
Given a set of pathnames newest returns the index of the newest one. Non existant files are supposed to be the oldest.
Examples
newest('SCI/modules/graphics/macros/bode.sci','SCI/modules/graphics/macros/bode.bin') newest(['SCI/modules/graphics/macros/bode.sci','SCI/modules/graphics/macros/bode.bin']) newest('SCI/modules/graphics/macros/bode.'+['sci','bin'])
See Also
- fileinfo — Provides information about a file
<< mtell | Entrées/Sorties [fichiers] | pathconvert >> |