Page 1 of 1

Print to a file without headerline

Posted: Thu Mar 12, 2009 5:00 pm
by chang
Hello,

when we are going to save vectors to a file, we can use such command:

Code: Select all

myfile.wopen("result.txt")
my_data.fprint(my_file,"%1.5e")
myfile.close()
But, beside the data in the file, Neuron would write the number of columns and rows in the first line. Is there any way to prevent Neuron to write such line in the file ?
Even using simply

Code: Select all

 print  "........." 
we see "1" in the next line.Any way, to remove this line?

Re: Print to a file without headerline

Posted: Fri Mar 13, 2009 11:49 am
by ted
No. Use the Vector class's printf() method instead--see
http://www.neuron.yale.edu/neuron/stati ... tml#printf