POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 experimental features : Re: Suggest v4.0 experimental features Server Time
30 Mar 2025 23:25:14 EDT (-0400)
  Re: Suggest v4.0 experimental features  
From: Leroy
Date: 25 Mar 2025 14:15:00
Message: <web.67e2f1892ef514c1cc5c2a9bf712fc00@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> > #read by whole line - everything gets read into one long string.
> > This would allow user parsing of the string, regardless of data types,
> > structure, number of entries, etc.
>
> I like this Idea!
> I have been playing with pgn files, chess format file. They are fancy text
> files with a list of all the moves in a game with a lot of other information
> like the tournament, players, rankings and so on. It would be nice to read all
> that info and drop it line by line until I got to something I want.
>  Right now I do it by hand by copying text to another file and getting it sit up
> for POV to Read. I could write a C++ program to do it for me, but I like POV.
>  Right Now 3.8 can handle strings larger that 255 elements, But Can't load them
> from a file. (3.7 seem to handle strings the same way.)
>  If a line read is to complicated to do, for some reason, then a binary read
> would be almost as good. Say read so many bytes at time and return as a integer.
>
> Have Fun!

I went into the source code for the win3.6 and found that there is already a
line read function there. That reads a line and puts into a buffer. So all that
is needed is to figure out how to access the code. I vote to add '#read_line' to
the parsing stage. easy! peasy!

having Fun!


Post a reply to this message

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