|
![](/i/fill.gif) |
Bill Pragnell wrote:
>
> If the data in the file isn't changing very often it might be worth running
> a loop to count the lines, then write a new data file with the array size
> as a header (maybe from a macro or a separate scene file). Then subsequent
> test renders etc with the same data can read the header and create an array
> with the correct size.
>
> But maybe that's not convenient... :-)
>
>
Yeah, not very self-contained though. I preliminary counting read is of
course what he is already doing and wants to improve on. Probably the
best solution would be to write the array declaration to an include file
right from POV. But there are lots of solutions, my guess is he is just
casting around for options, so hence my original answer to his question.
Post a reply to this message
|
![](/i/fill.gif) |