POV-Ray : Newsgroups : povray.beta-test : file input - doc bug, i/o bug or tom bug? : Re: file input - doc bug, i/o bug or tom bug? Server Time
2 Nov 2024 07:28:05 EDT (-0400)
  Re: file input - doc bug, i/o bug or tom bug?  
From: Tom Melly
Date: 4 Jan 2002 09:28:38
Message: <3c35bc16$1@news.povray.org>

news:12eb3usbtoehrsumk43ejs5h203dbl4gh7@4ax.com...
>
> works according to doc for me
>
> do you read in loop ? perhaps there is one extra reading according to your
while
> condition
>
> check this source
>

Hmm, that's okay, but this version fails without a comma (e.g. ",1,2,\n")

#fopen wfile "nothing.txt" write
#write( wfile , chr(34) , "hello" , chr(34) , ",1,2\n" ) /* bad */
/* #write( wfile , chr(34) , "hello" , chr(34) , ",1,2,\n" )*/ /* good */
#write( wfile , chr(34) , "hello" , chr(34) , ",1,2" )
#undef wfile
#fopen wfile "nothing.txt" read
#read( wfile , S, F1,F2 )
#warning S
#warning str(F1,0,0)
#warning str(F2,0,0)
#read( wfile , S, F1,F2 )
#warning S
#warning str(F1,0,0)
#warning str(F2,0,0)


Post a reply to this message

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