I got stuck to one problem. I have one .dat file which has six rows. Now I want to convert it to a root file. So, I wrote a code for it(basic.C). It is running but it is not saving any values inside the variables.
Could you please have look into it and suggest me a solution for this.
Thanks in Advance.
basic.C (1.0 KB)
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
You are trying to open signal.dat from ROOT’s tree tutorials directory, which might not be where the file is stored. You can use
in.is_open() to check if the input has been successfully opened.
How can I read a text file from my current directory where this basic.C file is there ?
You specify the path in
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.