AutoCAD 3DMAX C语言 Pro/E UG JAVA编程 PHP编程 Maya动画 Matlab应用 Android
Photoshop Word Excel flash VB编程 VC编程 Coreldraw SolidWorks A Designer Unity3D
 首页 > VB编程

用FreeFile防止文件打开冲突

51自学网 http://www.51zixue.net
Open "myfile.txt" for Append as #1
Print #1,"a line of text"
Close #1

IntFile=FreeFile()
Open "myfile.txt" for Append as #intFile
Print #intFile,"a line of text"
Close #intFile

 

 

 
上一篇:保存列表框的内容-保存列表框内容为文本文件  下一篇:将阿拉伯数字转成中文字的程式