|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
#fopen File "skylight.ppm" write
#write (File, concat("P3\r", str(10,0,0), " ", str(10,0,0), "\r255\r"))
#declare Y = 0; #while (Y < 10)
#declare X = 0; #while (X < 10)
#write (File, concat(str(X,0,0), " ", str(X,0,0), " ", str(Y,0,0), " "))
#declare X = X + 1; #end
#write (File, "\r")
#declare Y = Y + 1; #end
#fclose File
Changing all \r to \n produces a 36 byte-length file; the output from the
first #write and then ten returns.
Can anyone verify this problem?
System details:
AMD Athlon XP 2600+ (1.91GHz)
1GB DDR memory
Windows XP Pro
PoV-Ray version:
3.6.release-candidate.1.icl8.win32
Mike Andrews.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Opps - there was originally a paragraph at the top of the previous post:
'I set the script I/O restrictions to no restrictions, permit read/write in
the current directory, even explicitly unset the restrictions in the
pvengine.ini but the following code, which worked OK with the last beta,
creates a zero byte-length file:'
I seem to have lost it in the preview process without noticing. 8-/
Mike.
Post a reply to this message
|
|
| |
| |
|
|
From: Chris Cason
Subject: Re: [POVWIN RC1] Is file I/O working properly?
Date: 3 Jun 2004 14:24:15
Message: <40bf6ccf@news.povray.org>
|
|
|
| |
| |
|
|
"Mike Andrews" <nomail@nomail> wrote in message
news:web.40bd0c6e4cdb18f3a7ca9fe30@news.povray.org...
> #fopen File "skylight.ppm" write
> #write (File, concat("P3\r", str(10,0,0), " ", str(10,0,0), "\r255\r"))
> #declare Y = 0; #while (Y < 10)
> #declare X = 0; #while (X < 10)
> #write (File, concat(str(X,0,0), " ", str(X,0,0), " ", str(Y,0,0), " "))
> #declare X = X + 1; #end
> #write (File, "\r")
> #declare Y = Y + 1; #end
> #fclose File
>
> Changing all \r to \n produces a 36 byte-length file; the output from the
> first #write and then ten returns.
>
> Can anyone verify this problem?
yes.
I introduced some changes to the most recent build to correct the problem
where other text files written by POV (e.g. INI files) would be LF-only,
or in some cases a mix of CR/LF and LF. At a guess I'd say this has broken
the above code. I'll find and fix this.
-- Chris
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi Chris,
"Chris Cason" <new### [at] deletethispovrayorg> wrote:
> yes.
>
> I introduced some changes to the most recent build to correct the problem
> where other text files written by POV (e.g. INI files) would be LF-only,
> or in some cases a mix of CR/LF and LF. At a guess I'd say this has broken
> the above code. I'll find and fix this.
>
> -- Chris
Thanks Chris. I was hoping I hadn't missed something obvious ...
Mike.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|