![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thomas de Groot <tenDOTlnDOTretniATtoorgedDOTt> wrote:
> It seems to me that arrays are unduly complicated in use here.
Indeed. Although an array would be useful if the positions were to be used
repeatedly. I've had to use #read and arrays like this before.
Bill
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Thomas de Groot wrote:
> It seems to me that arrays are unduly complicated in use here.
> Personally, I would prefer the following:
>
> #fopen MyFile "myData.txt" read
> #while (defined(MyFile))
> #read (MyFile,Vector)
> #end
but for this you need a way to specify that a vector
should be read instead of a scalar, either by introducing
typed variables or requiring additional parameters.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
On 6-1-2012 15:20, Christian Froeschlin wrote:
> Thomas de Groot wrote:
>> It seems to me that arrays are unduly complicated in use here.
>> Personally, I would prefer the following:
>>
>> #fopen MyFile "myData.txt" read
>> #while (defined(MyFile))
>> #read (MyFile,Vector)
>> #end
>
> but for this you need a way to specify that a vector
> should be read instead of a scalar, either by introducing
> typed variables or requiring additional parameters.
I cannot pretend to know exactly what you mean :-) but in my simple
vision and use of this, I write and then read a vector (or a float or
whatever, e.g. text) according to my needs. You only have to take care
that you use a vector as such or a text as such and not make a
hotchpotch of things. #read reads and interprets what is between the
commas: if this is a vector, it reads a vector, etc. doesn't it?
Thomas
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Just wanted to thank Alain and Thomas for those additional comments.
It is very helpful to get this feedback. It is a great resource.
Thanks so much for taking the time to contribute to this discussion.
scott
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |