xry
10-15-2009, 04:03 PM
Hi.
Now I had another problem. I create a table like the follow:
new_table = {};
new_table[1] = {item1="Item 1", item2="Item 2", item3="Item 3"};
new_table[2] = {item1="Item 4", item2="Item 5", item3="Item 6"};
and use
TextFiles.WriteFromTable("C:\\TestTable.txt", new_table, false);
to write the table to a file, but I get a 0 Kb file. While using
TextFiles.WriteFromTable("C:\\TestTable.txt", new_table[1], false);
I get the trick, but of course write only the element [1] of the new_table.
I'm totally newbie and I think the problem is that I create
a table for each new_table element, right?
Can someone help me?
Thanks
xry
Now I had another problem. I create a table like the follow:
new_table = {};
new_table[1] = {item1="Item 1", item2="Item 2", item3="Item 3"};
new_table[2] = {item1="Item 4", item2="Item 5", item3="Item 6"};
and use
TextFiles.WriteFromTable("C:\\TestTable.txt", new_table, false);
to write the table to a file, but I get a 0 Kb file. While using
TextFiles.WriteFromTable("C:\\TestTable.txt", new_table[1], false);
I get the trick, but of course write only the element [1] of the new_table.
I'm totally newbie and I think the problem is that I create
a table for each new_table element, right?
Can someone help me?
Thanks
xry