|
 |
"Leroy" <whe### [at] gmail com> wrote:
> "Bald Eagle" <cre### [at] netscape net> 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
|
 |