POV-Ray : Newsgroups : povray.unix : Read files : Re: Read files Server Time: 23 Nov 2008 00:48:43 GMT
  Re: Read files  
From: Stephen
Date: 27 Jun 2007 10:00:01
"Slipktux" <alekscorpion [at] gmailcom> wrote:
> Hey buddies
> I'm from mexico and I don't speak english so good(...)
> I hope you to help me, I want to know how to read a file in povray (acces
> the file and read positions), and how does the positions file must be.
> Thanks so much for your attention...
> Bytes!

Welcome Slipktux,
You might be better reposting this in povray.international. There you will
find users who can answer you Spanish. You can open a file using the #fopen
directive and read it with the #read Directive. See the help section 3.2.2.3
 File I/O Directives. As for reading values into a variable, you can use a
while loop. Look at the example fileio.pov in POV-Ray for Windows
v3.6sceneslanguagefileio which comes with the installation.


Stephen


Post a reply to this message

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