|
![](/i/fill.gif) |
On 13-12-2012 18:51, Le_Forgeron wrote:
> If I read the error message, I would conclude that at the start of the
> *second* iteration, UV1 & pal are still defined
>
> Try something like:
>
> #fopen Triangles1 "MyFile.inc" read
> #while (defined(Triangles1))
> #read (Triangles1, T1, T2, T3, T4, T5, T6, UV1, UV2, UV3)
> etc...
> #undef UV1
> #undef UV2
> #undef UV3
> #undef T1
> #undef T2
> #undef T3
> #undef T4
> #undef T5
> #undef T6
> #end
>
Works! Thanks!
I think I understand /why/ this happened in this particular case. Within
the #while block I do a #write of some of the vectors to another file.
Before reading a new line I must first #undef them. Simple ;-)
Thomas
Post a reply to this message
|
![](/i/fill.gif) |