Man Scilab

fileparts
Scilab Function

fileparts - returns the path, filename and extension for a file path

Calling Sequence

[path,fname,extension]=fileparts(fullpath)
v=fileparts(fullpath,sel)

Parameters

Description

[path,fname,extension]=fileparts(fullpath) splits the fullpath character string in its three parts: the path of the directory pointed to, the filename part, the extension part including the dot.

Examples


   [path,fname,extension]=fileparts('SCI/scilab.star')
   fileparts('SCI/scilab.star','extension')
  
  

See Also

pathconvert ,   basename ,  

Author

Serge Steer, INRIA

Back