POV-Ray : Newsgroups : povray.unix : Read files : Re: Read files Server Time
9 Jun 2024 01:48:22 EDT (-0400)
  Re: Read files  
From: Stephen
Date: 27 Jun 2007 06:00:01
Message: <web.468234507396a637c4e49fa40@news.povray.org>
"Slipktux" <ale### [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-2023 Persistence of Vision Raytracer Pty. Ltd.