POV-Ray : Newsgroups : povray.beta-test : [POVWIN RC1] Is file I/O working properly? : Re: [POVWIN RC1] Is file I/O working properly? Server Time
29 Jul 2024 04:28:04 EDT (-0400)
  Re: [POVWIN RC1] Is file I/O working properly?  
From: Chris Cason
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

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