将选项卡写入文件 [英] Writing a tab to a file

查看:66
本文介绍了将选项卡写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下内容编写文件:


filename = server.mappath(session(" Directory")&" / Text /"& ;

ExportFileName)

设置ScriptObject = Server.CreateObject(" Scripting.FileSystemObject")

设置MyFile = ScriptObject.OpenTextFile(文件名, 2,true)

Myfile.writeline exportString

MyFile.Close


我把标签放在exportString中C方式,例如" \t"但它们在文本文件中逐字出现

。如何使用asp将选项卡写入文件? (我

不想要HTML标签!)谢谢

解决方案

如果使用vbscript则使用vbtab ;

-

=============================== =
http://www.ASPkey.net/

网络开发者资源网站

*免费OnLine网络工具

*免费开发服务

======= =========================

" Simon Wigzell" < SI ********** @ shaw.ca>在消息中写道

news:QIXeb.5422


pl3.2704@pd7tw3no ...

我正在使用以下内容写一个文件:

filename = server.mappath(session(" Directory")&" / Text /"&
ExportFileName)
设置ScriptObject = Server.CreateObject(" Scripting.FileSystemObject")
设置MyFile = ScriptObject.OpenTextFile(filename,2,true)
Myfile.writeline exportString
MyFile.Close
我正在使用C方式在exportString中添加标签,例如" \t"但它们在文本文件中逐字出现。如何使用asp将选项卡写入文件?
(我不想要HTML标签!)谢谢



" TJS"写道:


如果使用vbscript然后使用vbtab




或继续使用\t并切换到JScript。

-

戴夫安德森


未经请求的商业电子邮件将以

I''m using the following to write a file :

filename = server.mappath(session("Directory") & "/Text/" &
ExportFileName)
Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile(filename,2,true)
Myfile.writeline exportString
MyFile.Close

I''m putting tabs in the exportString the C way e.g. "\t" but they come out
in the text file literally. How does one write a tab to a file with asp? (I
don''t want an HTML tab!) Thanks

解决方案

if using vbscript then use "vbtab"
--
================================
http://www.ASPkey.net/
A Resource Site for Web Developers
*Free OnLine web Tools
*Free development services
================================

"Simon Wigzell" <si**********@shaw.ca> wrote in message
news:QIXeb.5422


pl3.2704@pd7tw3no...

I''m using the following to write a file :

filename = server.mappath(session("Directory") & "/Text/" &
ExportFileName)
Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile(filename,2,true)
Myfile.writeline exportString
MyFile.Close

I''m putting tabs in the exportString the C way e.g. "\t" but they come out
in the text file literally. How does one write a tab to a file with asp? (I don''t want an HTML tab!) Thanks



"TJS" wrote:


if using vbscript then use "vbtab"



Or continue using "\t" and switch to JScript.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of


这篇关于将选项卡写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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