将multidimeisonal数组打印到.txt文件
大家好,
将多维数据库阵列打印到.txt文件的正确语法是什么?
我知道一个simgle维数组可以是这样打印。
打印#1,arrCount(1);
目前我使用下面的代码来做这个但是这样我不是能够设置分隔符,因此无法在excel中打开不同单元格中的所有数据。我正在使用逗号,如代码所示,但我想要一个更好的解决方案。
在得到偏离之前,这是一个问题。如何在文件中打印milti dimensioanl数组?
感谢大家
Hi Guys,
what is the correct syntax for printing a multidimensioanl array to a .txt file?
I know a simgle dimension array can be printed like this.
Print #1, arrCount(1);
Currently I am using the following code below to do it but this way I am not able set the delimiters and so unable to open in in excel with all data in different cell. I''m using comma as seen in the code but I want a better solution.
Before getting sidetracked, here is the question. How do you print a milti dimensioanl array to a file?
thanks guys
我写了一些简单的代码,应该清楚地说明如何将多维数组写入文本文件。以下代码将:
I have written some simple Code that should clearly illustrate how to write a Multi-Dimensional Array to a Text File. The following Code will:
- 使用一些虚拟值填充多维数组。
- 回读这些值并写入文本文件在数据库的目录中。
- 示例代码:
- Populate a Multi-Dimensional Array with some Dummy Values.
- Read back those Values and write then to a Text File in the Database''s Directory.
- Sample Code:
我已经完成了。我正在发布我如何修复它,希望它能帮助某人;就像你们一样。
谢谢
更改例如
I''ve done it. I''m posting how I fixed it below in the hope that it will help someone; just like you guys.
thanks
Changing e.g.
你不能浓缩代码,类似于:
Couldn''t you condense the Code, something similar to: