Question: Write table into file

Dear everyone,

 

  Hi,

 

  I have a simple problem of writting data into a file:

 

  For something like

***********

for i from 1 to 3 do
  L[i]:=i;
end do;
writedata(`d:\test.txt`,L);

***********

 

I got
                               1
                               2
                               3
Error, invalid input: writedata expects its 2nd argument, Data, to be of type {set, hfarray, list, matrix, array(1), list(list)}, but received L

What shall I do to write into a file in disk?

 

Thank you very much in advance

Please Wait...