FileTools
Remove
remove a file from the file system
Calling Sequence
Parameters
Description
Examples
Remove(file, file2, ...)
file1, file2, ...
-
one or more filenames or descriptors
The Remove(file1, file2, ...) command deletes files from the file system.
The Remove function does not return anything.
If file refers to an open file, it is automatically closed and then deleted.
Errors that occur while removing individual files are tagged, and Remove continues until it reaches the end of the list, then throws an error reporting all files that it was unable to remove.
FileTools:-Text:-WriteFile⁡testfile,this is a test
15
FileTools:-Text:-ReadFile⁡testfile
this is a test
FileTools:-Remove⁡testfile
The file "testfile" cannot be read because it has been removed.
Error, (in FileTools:-Text:-ReadFile) file or directory does not exist: testfile
See Also
file_types
FileTools[Binary][Close]
FileTools[Binary][Open]
FileTools[Text][Close]
FileTools[Text][Open]
FileTools[Text][ReadLine]
FileTools[Text][WriteLine]
fremove
IO_errors
Download Help Document
What kind of issue would you like to report? (Optional)