|
|
"Chris B" <nom### [at] nomailcom> wrote:
> "melo" <mel### [at] coxnet> wrote in message
> news:web.47b534b08e58508092254edf0@news.povray.org...
> > ...
> > In the second stage of animation marked with #range(1, 2) statement, I
> > attempt
> > to reread the walk01.pov file to know which pose to start the animation
> > and
> > read walk03.pov to know which pose to end the animation. However, during
> > that
> > second attempt to reread the walk01.pov file which was read ok the first
> > time,
> > the program crashes at the second line of the file claiming it could not
> > be
> > read.
> >
>
> I suspect you just need to close each file once you've finished reading it
> for each frame (See fclose).
>
> Regards,
> Chris B.
Thanks Chris, I had tried that, however, PoV-RAY complained, when I inserted
fclose statemnts. Read says that when you attempt reading past end of file, it
automatically closes it that is how we know to end the while loop that controls
the reads.
Meltem
Post a reply to this message
|
|