TTree->ReadFile() problem

Hi rooters.

I got this problem

[quote]./fitterplotter test.csv
Warning in TTree::ReadStream: Ignoring trailing " 2" while reading data for branch x on line 1
Warning in TTree::ReadStream: Read too few columns (1 < 2) in line 1; ignoring line
Warning in TTree::ReadStream: Ignoring trailing " 4" while reading data for branch x on line 2
Warning in TTree::ReadStream: Read too few columns (1 < 2) in line 2; ignoring line
Warning in TTree::ReadStream: Ignoring trailing " 6" while reading data for branch x on line 3
Warning in TTree::ReadStream: Read too few columns (1 < 2) in line 3; ignoring line
Warning in TTree::ReadStream: Ignoring trailing " 8" while reading data for branch x on line 4
Warning in TTree::ReadStream: Read too few columns (1 < 2) in line 4; ignoring line
Warning in TTree::ReadStream: Ignoring trailing " 10" while reading data for branch x on line 5
Warning in TTree::ReadStream: Read too few columns (1 < 2) in line 5; ignoring line
[/quote]

here the relevant part of the code

TTree *t = new TTree("t", "t"); t->ReadFile(argv[1],"x/D:y");

please help me , I’ve been reading a lot in the forum but I don’t find the solution
thanks in advance
Best Regards
test.csv (24 Bytes)

Rename your data file into “test.txt” (in general, a “.csv” file is a “Comma-Separated Values” file and your data file is not one).

That’s it!!
Thank you very much, it works!