| 发表于:2007-08-07 11:44:402楼 得分:0 |
option explicit private sub command1_click() dim fso as new filesystemobject if dir( "f:\file.txt ", vbnormal) = " " then fso.createtextfile "f:\file.txt " end if dim stream as textstream set stream = fso.opentextfile( "f:\file.txt ", forappending) stream.writeline text1.text stream.close set stream = nothing set fso = nothing end sub | | |
|