Katherina <nomail@nomail> wrote:
> I looked at the link that you sent to me, but my problem is that I have a
> huge data and there are no commas between elements and also between rows as
> in the Povray definition below:
If there are no negative numbers then it's actually possible to read them
as if they were separated by commas (by using #fopen and then a #while loop
with a #read inside it to read the values from the file and assign them to
the array). If there are negative values, however, then it's not possible
(because povray will interpret it as a substraction of two numbers).
Depending on how the file is formatted it may be easy to search&replace
whitespace with commas with almost any text editor.
--
- Warp
Post a reply to this message
|