Page 1 of 1
saving a vector into a file
Posted: Tue Aug 22, 2006 12:17 pm
by ecchiang
How do I write a vector into a text file that just lists all the numbers stored in the vector? I ultimatley want to import the file into Excel or origin to do some data anysis. I've tried vwrite and fwrite but they don't seem to work for me.
Thanks,
Elisa
Posted: Tue Aug 22, 2006 8:27 pm
by ted
The Vector class's vwrite and fwrite produce binary files. Excel can't read those. You need
to generate a plain text file. Use the Vector class's printf method. Read about it here
http://www.neuron.yale.edu/neuron/stati ... tml#printf
and read about the File class here
http://www.neuron.yale.edu/neuron/stati ... .html#File