![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
How would you determine if a file exists? The docs list
#fopen/read/write/fclose, but not any other file IO functions. Is this
possible with POVRay?
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> How would you determine if a file exists? The docs list
> #fopen/read/write/fclose, but not any other file IO functions. Is this
> possible with POVRay?
From "3.2.2.3.1 The #fopen Directive": You may use #ifdef
FILE_HANDLE_IDENTIFIER to see if a file is open.
So I think using #fopen to open the file, and then using #ifdef on the file
handle identifier will check if the file exists.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris S. wrote:
> How would you determine if a file exists? The docs list
> #fopen/read/write/fclose, but not any other file IO functions. Is this
> possible with POVRay?
http://www.povray.org/documentation/view/3.6.1/228/#s02_02_01_03_04_i20
Christoph
--
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 06 Jul. 2004 _____./\/^>_*_<^\/\.______
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Chris S. <chr### [at] nospam udel edu> wrote:
> How would you determine if a file exists?
file_exists("filename")
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Christoph Hormann wrote:
> Chris S. wrote:
>
>> How would you determine if a file exists? The docs list
>> #fopen/read/write/fclose, but not any other file IO functions. Is this
>> possible with POVRay?
>
>
> http://www.povray.org/documentation/view/3.6.1/228/#s02_02_01_03_04_i20
>
> Christoph
Thank you. That's exactly what I'm looking for.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |