将multidimeisonal数组打印到.txt文件 [英] Print multidimeisonal array to .txt file

查看:115
本文介绍了将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

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号

推荐答案

我写了一些简单的代码,应该清楚地说明如何将多维数组写入文本文件。以下代码将:
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:
  1. 使用一些虚拟值填充多维数组。
  2. 回读这些值并写入文本文件在数据库的目录中。
  3. 示例代码:
  1. Populate a Multi-Dimensional Array with some Dummy Values.
  2. Read back those Values and write then to a Text File in the Database''s Directory.
  3. Sample Code:
展开 | 选择 | Wrap < span class =codeDivider> | 行号


我已经完成了。我正在发布我如何修复它,希望它能帮助某人;就像你们一样。

谢谢


更改例如
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.
展开 | 选择 | Wrap | 行号


你不能浓缩代码,类似于:
Couldn''t you condense the Code, something similar to:
展开 | 选择 | Wrap | 行号


这篇关于将multidimeisonal数组打印到.txt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆