]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdReadColumnsString.cxx
#3028 BBTK Bug New Normal - rights reading files in std
[bbtk.git] / packages / std / src / bbstdReadColumnsString.cxx
index d56e658466dcb0c4a4baba44afb940077245af17..2860219d384957e978256e26e9ff3744bc0c10a8 100644 (file)
@@ -54,13 +54,13 @@ void ReadColumnsString::Process()
        int numberOfLines = 0;
        char tmpValue[500];
        std::vector<std::string> *vecData;
-       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
+       FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r" );
        if (ff1!=NULL)
        {
                for (iSkipLines=0;iSkipLines<bbGetInputSkipLines(); iSkipLines++ )
-      {
-         fgets( tmpValue , 500, ff1 ); 
-      }
+       {
+               fgets( tmpValue , 500, ff1 ); 
+       }
 
                while (!feof(ff1))
                {