From: Eduardo DAVILA Date: Fri, 15 Jul 2016 12:40:13 +0000 (+0200) Subject: #2997 BBTK Feature New Normal - Read Lines String box in package std X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=bbtk.git;a=commitdiff_plain;h=eef1f5f44ae46233bdf8adfda92aa9770c8ef971 #2997 BBTK Feature New Normal - Read Lines String box in package std --- diff --git a/packages/std/src/bbstdStringWriter.cxx b/packages/std/src/bbstdStringWriter.cxx index 13f1bbe..84eb35b 100644 --- a/packages/std/src/bbstdStringWriter.cxx +++ b/packages/std/src/bbstdStringWriter.cxx @@ -47,16 +47,16 @@ void StringWriter::Process() FILE *ff = fopen(bbGetInputFileName().c_str(),"w"); if (ff!=NULL) { - if (bbGetInputIn0()!="") { fprintf(ff,"%s \n",bbGetInputIn0().c_str()); } - if (bbGetInputIn1()!="") { fprintf(ff,"%s \n",bbGetInputIn1().c_str()); } - if (bbGetInputIn2()!="") { fprintf(ff,"%s \n",bbGetInputIn2().c_str()); } - if (bbGetInputIn3()!="") { fprintf(ff,"%s \n",bbGetInputIn3().c_str()); } - if (bbGetInputIn4()!="") { fprintf(ff,"%s \n",bbGetInputIn4().c_str()); } - if (bbGetInputIn5()!="") { fprintf(ff,"%s \n",bbGetInputIn5().c_str()); } - if (bbGetInputIn6()!="") { fprintf(ff,"%s \n",bbGetInputIn6().c_str()); } - if (bbGetInputIn7()!="") { fprintf(ff,"%s \n",bbGetInputIn7().c_str()); } - if (bbGetInputIn8()!="") { fprintf(ff,"%s \n",bbGetInputIn8().c_str()); } - if (bbGetInputIn9()!="") { fprintf(ff,"%s \n",bbGetInputIn9().c_str()); } + if (bbGetInputIn0()!="") { fprintf(ff,"%s\n",bbGetInputIn0().c_str()); } + if (bbGetInputIn1()!="") { fprintf(ff,"%s\n",bbGetInputIn1().c_str()); } + if (bbGetInputIn2()!="") { fprintf(ff,"%s\n",bbGetInputIn2().c_str()); } + if (bbGetInputIn3()!="") { fprintf(ff,"%s\n",bbGetInputIn3().c_str()); } + if (bbGetInputIn4()!="") { fprintf(ff,"%s\n",bbGetInputIn4().c_str()); } + if (bbGetInputIn5()!="") { fprintf(ff,"%s\n",bbGetInputIn5().c_str()); } + if (bbGetInputIn6()!="") { fprintf(ff,"%s\n",bbGetInputIn6().c_str()); } + if (bbGetInputIn7()!="") { fprintf(ff,"%s\n",bbGetInputIn7().c_str()); } + if (bbGetInputIn8()!="") { fprintf(ff,"%s\n",bbGetInputIn8().c_str()); } + if (bbGetInputIn9()!="") { fprintf(ff,"%s\n",bbGetInputIn9().c_str()); } fclose(ff); } }