双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

将*.html文件转为*.txt文件之后为什么打不开文本啊!! 虚心请教!!!

candy2002 candy2002 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我先打开一个网页,然后将网页转为源代码。但是却打不开
( 我用RichTextbox显示文本)
Dim inChrCnt As Integer 'Number of characters
Dim strbuffer As String 'String buffer
Dim strMyString As String 'String to truncate

On Error GoTo default
inChrCnt = Len(path)
strbuffer = Left(path, inChrCnt - 5)
strMyString = strbuffer + ".txt" (这三段代码将*.html 文件转为*.txt文件
问题在这:打不开
Open strMyString For Input As #1
While Not EOF(1)
Line Input #1, lstr
RichTextBox1.Text = RichTextBox1.Text + lstr + Chr(13) + Chr(10)
Wend

Close #1


...全文
评论 3
收藏 已收藏
分享
返回顶部
candy2002
VB基础类 7,788 成员 197,583 内容