]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdReadColumnsDouble.cxx
#3028 BBTK Bug New Normal - rights reading files in std
[bbtk.git] / packages / std / src / bbstdReadColumnsDouble.cxx
index c74a39fd1ff6e68a03059648200135ad841ce4b2..ca3dd76be41105337377f09a2f51270f0f0a1959 100644 (file)
@@ -39,21 +39,17 @@ BBTK_BLACK_BOX_IMPLEMENTATION(ReadColumnsDouble,bbtk::AtomicBlackBox);
 // 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)
 //===== 
 void ReadColumnsDouble::Process()
-{
-       printf("EED ReadColumnsDouble::Process start \n");
-       
-       std::vector< std::vector<double> * > tlst;
-       
+{      
+       std::vector< std::vector<double> * > tlst;      
        int i;
        for( i=0 ;  i<bbGetInputDimension() ; i++)
        {
                tlst.push_back( new std::vector<double> );
        }       
-       
        int numberOfLines = 0;
-       char tmpValue[50];
+       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))
@@ -89,11 +85,6 @@ void ReadColumnsDouble::Process()
        i=13; if (i<=bbGetInputDimension()) { bbSetOutputlstData13( *(tlst[i-1]) ); }
        i=14; if (i<=bbGetInputDimension()) { bbSetOutputlstData14( *(tlst[i-1]) ); }
        i=15; if (i<=bbGetInputDimension()) { bbSetOutputlstData15( *(tlst[i-1]) ); }
-       
-       
-       printf("EED ReadColumnsDouble::Process end \n");
-       
-       
 }
 //===== 
 // 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)