一个子程序,它创建一个具有给定名称的文件并输出一个给定的内容 [英] a subroutine that creates a file with a given name and outputs the contents of a give

查看:85
本文介绍了一个子程序,它创建一个具有给定名称的文件并输出一个给定的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

创建具有给定名称的文件的子例程,并将数组的内容输出到给定的命名文件

应该通过以下方式调用它:


& WriteToFile(``suppliers.txt'''',@ suppliers);其中`@suppliers''包含供应商的所有``name:number''''组合,'`suppliers.txt''''是要创建的文件的名称。

需要帮助!



a subroutine that creates a file with a given name and outputs the contents of a array to given named file
It should be called in the following way:

&WriteToFile(``suppliers.txt'''', @suppliers); where `@suppliers'' contains all the ``name: number'''' combinations for
the suppliers, and ``suppliers.txt'''' is the name of the file to create.
need help on this one !!!

附加文件
bla dont delete.txt (2.6 KB,211 views)
Attached Files
bla dont delete.txt (2.6 KB, 211 views)

推荐答案

你和scuzz88是同一个人,还是同一个人?


我们不会做你的功课,但我们可以给你一些指导。 />

首先尝试自己编写sub,当遇到问题时,发布代码并提出具体问题。您的帖子应该包含您的代码生成的所有警告和错误消息。


您的脚本应该在顶部附近包含这2行。
Are you and scuzz88 the same person, or just in the same class?

We are not going to do your homework, but we can give you some guidance.

Start by trying to write the sub yourself and when you get stuck, post your code and ask specific questions. Your post should include all warnings and error messages that your code produces.

Your script should include these 2 lines near the top.
展开 | 选择 | Wrap | 行号


当然我加入了课程1个月晚了

i我确定它不是导师而是我!!!

非常适合任何帮助
of course i joined the class 1 month late
i am sure its not the instructor but me!!!
would be very great full for any help


你尝试过什么?


在打电话给你的时候不要用''&'' sub。


不要使用原型,而不是:
What have you tried?

Don''t use ''&'' when calling the sub.

Don''t use prototypes i.e., instead of:
展开 | 选择 | Wrap | 行号


这篇关于一个子程序,它创建一个具有给定名称的文件并输出一个给定的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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