TFile Delete function is a member function of ROOT C++ framework that allows a user to delete a file from the file system. It is defined in the TFile class and can be called on a TFile object.
Example 1: To delete a file named "myFile.root" using TFile Delete method, the following code can be used.
TFile *file = new TFile("myFile.root", "DELETE");
This code will create a TFile object with name "myFile.root" and will delete it from the file system using the "DELETE" option.
Package Library: ROOT C++ Framework
Example 2: To delete multiple files named "file1.root", "file2.root" and "file3.root" using TFile Delete method, the following code can be used.
This code will delete all three files from the file system using the "DELETE" option.
Package Library: ROOT C++ Framework.
C++ (Cpp) TFile::Delete - 19 examples found. These are the top rated real world C++ (Cpp) examples of TFile::Delete extracted from open source projects. You can rate examples to help us improve the quality of examples.