POV-Ray : Newsgroups : povray.general : Syntax for reading a large file of numbers. : Re: Syntax for reading a large file of numbers. Server Time
31 Jul 2024 10:20:47 EDT (-0400)
  Re: Syntax for reading a large file of numbers.  
From: gregjohn
Date: 19 May 2007 13:55:02
Message: <web.464f39ccbd786cc534d207310@news.povray.org>
Alain <ele### [at] netscapenet> wrote:

> You can do this:
> #declare My_Array[1000]={#include "Your_text_file.txt"}
>

Okay.  This syntax works for a short array:
#declare That_Array=array[5]{1,2,3,4,5}

But for my actual big file, which Notepad2 tells me is 14405 lines long:

#declare My_Array=array[14406]{#include "c:My_Include_File.ppp"}

.... gives me an error message:

"Parse Error: Insufficient number of initializers."  I get that with
14404,14405, and a quazillion in the []'s.

Warp's reference to the docs points me to a more painstaking process. I
could do that, but still wondering if there were a quick trick like the one
you suggested, but with different syntax.


Post a reply to this message

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