Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
Scilabヘルプ >> Files : Input/Output functions > deletefile

deletefile

ファイルを削除する

呼び出し手順

f = deletefile(filename)

引数

filename

文字列: 存在または存在しないファイルの名前.

f

論理値: %t または %f

説明

この関数は,ファイルfilenameを削除します. ファイルfilenameが削除された場合に %t , それ以外の場合に%fを返します.

fd = mopen(TMPDIR+'/filetodelete.txt','wt');
mclose(fd); 
if (fileinfo(TMPDIR+'/filetodelete.txt') <> []) then 
deletefile(TMPDIR+'/filetodelete.txt')
end
deletefile(TMPDIR+'/notexistingfile')
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:28 CEST 2016