POV-Ray : Newsgroups : povray.unix : Read files Server Time
16 May 2024 22:35:02 EDT (-0400)
  Read files (Message 1 to 2 of 2)  
From: Slipktux
Subject: Read files
Date: 23 Jun 2007 20:30:02
Message: <web.467dba8fec9c8049782f6f30@news.povray.org>
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!


Post a reply to this message

From: Stephen
Subject: Re: Read files
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.