Print to a file without headerline

The basics of how to develop, test, and use models.
Post Reply
chang

Print to a file without headerline

Post 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?
ted
Site Admin
Posts: 5810
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Print to a file without headerline

Post by ted »

No. Use the Vector class's printf() method instead--see
http://www.neuron.yale.edu/neuron/stati ... tml#printf
Post Reply