tlst.push_back( new std::vector<std::string> );
}
+ int iSkipLines;
int numberOfLines = 0;
- char tmpValue[50];
+ char tmpValue[500];
std::vector<std::string> *vecData;
FILE *ff1 = fopen( bbGetInputFileName().c_str() , "r+" );
if (ff1!=NULL)
{
+ for (iSkipLines=0;iSkipLines<bbGetInputSkipLines(); iSkipLines++ )
+ {
+ fgets( tmpValue , 500, ff1 );
+ }
+
while (!feof(ff1))
{
for( i=0 ; i<bbGetInputDimension() ; i++)
// SET HERE THE DEFAULT INPUT/OUTPUT VALUES OF YOUR BOX
// Here we initialize the input 'In' to 0
+ bbSetInputSkipLines(0);
bbSetInputDimension(1);
bbSetInputFileName("");
// 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)
//=====
BBTK_DECLARE_INPUT(FileName,std::string);
+ BBTK_DECLARE_INPUT(SkipLines,int);
BBTK_DECLARE_INPUT(Dimension,int);
BBTK_DECLARE_OUTPUT(lstData1,std::vector<std::string> );
BBTK_DESCRIPTION("Read Columns from a text file");
BBTK_CATEGORY("read/write");
BBTK_INPUT(ReadColumnsString,FileName,"File name of Points",std::string,"");
+ BBTK_INPUT(ReadColumnsString,SkipLines,"(default 0) - Number of lines to be skipe before read data",int,"");
BBTK_INPUT(ReadColumnsString,Dimension,"(default 1) - The number of columns of the file",int,"");
BBTK_OUTPUT(ReadColumnsString,lstData1,"vector of data",std::vector<std::string>,"");