]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdReadColumnsDouble.cxx
Clean code
[bbtk.git] / packages / std / src / bbstdReadColumnsDouble.cxx
index 42815ce3b0a4ce89876ea9288701f6fd61502bd1..92f0557ab138d05213d6c32b85d3968123ad2fde 100644 (file)
@@ -40,8 +40,7 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsDouble,bbtk::AtomicBlackBox);
 //===== 
 void ReadColumnsDouble::Process()
 {      
-printf("EED ReadColumnsDouble::Process  UPS  \n");
-       std::vector< std::vector<double> * > tlst;      
+       std::vector< std::vector<double> * > tlst;
        int i;
        for( i=0 ;  i<bbGetInputDimension() ; i++)
        {
@@ -50,7 +49,7 @@ printf("EED ReadColumnsDouble::Process  UPS  \n");
        int numberOfLines = 0;
        char tmpValue[1000];
        std::vector<double> *vecData;
-       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
+       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r" );
        if (ff1!=NULL)
        {
                 if (!feof(ff1))
@@ -87,6 +86,7 @@ printf("EED ReadColumnsDouble::Process  UPS  \n");
        i=14; if (i<=bbGetInputDimension()) { bbSetOutputlstData14( *(tlst[i-1]) ); }
        i=15; if (i<=bbGetInputDimension()) { bbSetOutputlstData15( *(tlst[i-1]) ); }
 }
+
 //===== 
 // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
 //=====