将表单保存到文件 [英] Saving a Form to a file
本文介绍了将表单保存到文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好我正在尝试编写一个perl脚本来将表单保存到文件中。任何人都可以帮忙吗?
Hi i am trying to write a perl script to save a form to a file. Can anyone help?
推荐答案
当然,但我们必须知道:
Sure, but we have to know things like:
- 你到目前为止所尝试的内容
- 你看到了什么错误
- 什么不行?
如果你能发布您的代码(请用代码标签包围)并提供其他信息,我们会尽力帮助您。
问候,
Jeff
If you can post your code (surrounded by code tags please) and provide us the other information, we will do our best to help you.
Regards,
Jeff
我能够将它保存到文件中,但现在我只想读取文件并在每行元素的新行上打印出数据。这里是代码:我希望输出看起来与它在文件中的保存方式完全相同
i was able to save it to a file but now i just want to read in the file and just print out the data on a new line for each element. here is the code: i want the output to look exactly like how it is saved in the file
展开 | 选择 | Wrap | 行号
nmeliasp,
首先,我要求您用来包围代码的代码标签不是可选的。它们是论坛所必需的,您不需要将它们放入需要主持人为您添加它们。请按照我之前的要求将它们添加到您下次的代码中!
至于您的问题,您帖子的主题似乎具有误导性。它是说您要在最新的帖子中将表单保存到文件中,您希望在屏幕上显示文件的内容,因为它显示在文件中。
当你运行你拥有的东西时,输出看起来如何?
就个人而言,取代这一行:
nmeliasp,
First, the code tags that I asked you to use to surround your code were not optional. They are required for the forums and your not putting them in requires a moderator to add them for you. Please add them to your code next time, as I requested earlier!
As for your issue, the topic of your post seems to be misleading. It is saying that you want to save a form to a file yet in your latest post, you are wanting to display the contents of a file on the screen, as it appears in the file.
When you run what you have, how does the output look?
Personally, in place of this line:
< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号
这篇关于将表单保存到文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文