Dear Experts,
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.
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.