Reading or writing files within ROOT requires the class TXNetFile which is found in the library libNetx.so.
This library is loaded automatically if the static method TFlle::Open() is used to open the file.
Wiki Markup |
---|
root \[2\] TFile \*f = TFile::Open("root://glast-rdr//wilko/test/basic.root") will load TXnetFile automatically // Reading a file |
If TXnetFile is used directly the library has to be loaded first:
Wiki Markup |
---|
root\[2\] .L lib$ROOTSYS/libNetx.so root\[3\] TFile \*f = new TXNetFile("root://glast-rdr//wilko/test/basic.root")) |
requires that the library (Netx.so) that contains TXNetFile has to be loaded first.
, ,"RECREATE")) // Open a file for writing |
...