POV-Ray : Newsgroups : povray.general : Reading from a text file : Re: Reading from a text file Server Time
29 Jul 2024 10:26:54 EDT (-0400)
  Re: Reading from a text file  
From: Thomas de Groot
Date: 5 Jan 2012 10:52:22
Message: <4f05c736$1@news.povray.org>
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

see: 3.2.2.3.3 The #read Directive

Thomas


Post a reply to this message

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