I'm new in the neuroscience field and the Neuron software, so my problem might be dumb. I have a file "Values.dat" that contains a list of numerical values. I was able to create this file by creating an object File() and then using the printf function. Now I want to be able to read from this file, which as I understand can be done by using the fscan function. Here is a test code that I wrote:
Code: Select all
objref MyFile
MyFile=new File()
MyFile.ropen("Values.dat")
for (i=0;i<10;i=i+1) {
Value=MyFile.fscan()
print Value
}
MyFile.close
What am I doing wrong?fscan not a public member of File
nrniv: File fscan
in Test.hoc near line 8
}