FairRoot/PandaRoot
parfiletest.C
Go to the documentation of this file.
1 using namespace std;
2 
3 void parfiletest(string Filename, Int_t iMaxValues)
4 {
5  string InputBuffer;
6  char* pEnd;
7  Double_t Value1;
8  Double_t *Values = new Double_t[16];
9 
10  ifstream InputFile;
11  InputFile.open(Filename.data());
12 
13  if (!InputFile)
14  {
15 
16  cout << "File does not exist" << endl;
17  }
18  else if (InputFile.good())
19  {
20  getline(InputFile,InputBuffer);
21  cout << InputBuffer << endl;
22  pEnd = InputBuffer.data();
23  for (Int_t iValues = 0; iValues < iMaxValues; iValues++)
24  {
25  Values[iValues = strtod(pEnd,&pEnd);
26 
27  cout << "Value_" << iValues <<": " <<Value1 << endl<<endl;
28  //cout << pEnd << endl;
29  };
30  }
31 
32 
33 }
34 
35 
36 GetParameters(ifstream InputFile,Int_t iMaxValues)
37 
38 
void parfiletest(string Filename, Int_t iMaxValues)
Definition: parfiletest.C:3
Double_t