Hi Dong first I made a small correction to your script: > ifstream fin("tmp.dat"); instead of ifstream("tmp.cpp"); I see the same output as you report - this is because if you look at the file tmp.dat you create it contains the following: 00.10.2 if you change the line fout << i*0.1; so that it reads fout << i*0.1 << endl; the contents of tmp.dat will be 0 0.1 0.2 and the result of tmp() looks like: root [0] .L dong.cpp root [1] tmp() 0 0 1 0.1 2 0.2 Hope this helps John -- John D. Frankland <mailto:frankland@ganil.fr> Beam Coordinator GANIL B.P. 55027 14076 CAEN Cedex 05 *tel:* +33 (0)231454628 *fax:* +33 (0)231454665
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET