|
![](/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) |