POV-Ray : Newsgroups : povray.general : Reading from a text file : Re: Reading from a text file Server Time
29 Jul 2024 16:33:01 EDT (-0400)
  Re: Reading from a text file  
From: Christian Froeschlin
Date: 6 Jan 2012 09:20:25
Message: <4f070329@news.povray.org>
Thomas de Groot wrote:
> It seems to me that arrays are unduly complicated in use here. 
> Personally, I would prefer the following:
> 
> #fopen MyFile "myData.txt" read
> #while (defined(MyFile))
>   #read (MyFile,Vector)
> #end

but for this you need a way to specify that a vector
should be read instead of a scalar, either by introducing
typed variables or requiring additional parameters.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.