Why is it that when I try and run my code, the errors reported reference the wrong line numbers. This can be frustrating when the errors do not report any text from the line.
You have many C++ errors in your code. I have fixed most of them such that your script can be executed. See attachements.
You can use the ROOT ACLIC system to easily debug your scripts.
For example in your case, do
root > .L asciiread.C+
root > james()
When specifying the “+” the compiler is called instead of the interpreter
and you will get much better error messages.
I had to rename your file b0_nuovo_small.c to b0_nuovo_small.dat