如果文件存在就读取,没有则创建个
解决方案 »
- VB如何实现倒循环
- 有N组数,指定每组固定取0-2个数,然后列出所有组合.....有什么好算法?
- word 表 index 100分
- 100+50分再问:如何禁止RichTextBox中由OLEObjects.add 插入文件后自动打开?
- 大家帮忙看看我的修订功能为什么实现不了?
- 请教大家,vb调matlab的问题
- vb中有这样的控件吗?
- 哪位高人能修改textbox控件的行间距?在线等候,马上给分
- 怎么学VB?
- 一个关于pictruebox的问题,急救!!!!
- 如何用VB调用VB中access数据库中表的“打开”,以便进入表的添加、编辑、删除等一系列功能?
- 什么样的Grid控件能与Ado搭配??请高手赐教!!
set fso=new filesystemobjectif fso.fileexists(Filename) then
'open
else
'Create
endifset fso=nothing
Open "c:\txt1.txt" For Output As 1
'写文件
……
Else
Open "c:\txt1.txt" For Input As 1
'读文件
……
End if
Close 1
findfile = True
dirpath = IIf(Right(dirpath, 1) = "\", dirpath, dirpath & "\")
If Dir(dirpath & filename) = "" Then findfile = False
End Function