VBÈçºÎÔÚÖ¸¶¨µÄÎļþ¼ÐÖÐ(ÈçDÅ̵ÄTempÎļþ¼Ð)´´½¨Ò»¸öÃûΪabcµÄ¼Çʱ¾µÄ.TXTÎĵµ,¶øÇÒÏòÎĵµÖÐÊäÈëÖ¸¶¨TextBox¿Ø¼þÖеÄÄÚÈÝ Dim txtStream As TextStream Dim fso As FileSystemObject Set fso = New FileSystemObject Set txtStream = fso.OpenTextFile(App.Path & "\abc.txt", ForWriting, True) txtStream.Write text1.text Open "c:\x.txt" For Output As #1 Print #1, Text1.Text Close #1
TempÎļþ¼ÐÈç¹û²»´æÔÚ£¬ÒªÏÈ´´½¨¡£ VB code:
Private Sub Command1_Click() If Dir("d:\temp") = " " Then MkDir "d:\temp" Open "d:\temp\abc.txt" For Output As #1 Print #1, Text1.Text Close #1 End Sub
ѧϰÁË 1Â¥Õý½â Open "d;\temp\abc.txt" For Append As #1 Print #1, Text1.Text Close #1
Çë½ÌһϣºÎÒÓÃvbдÁËÒ»¸öµ÷ÓÃIllustratorµÄ²âÊÔ³ÌÐò£¬´úÂëºÜ¼òµ¥£ºPrivate Sub Command1_Click() Dim app As New Illustrator.Application Dim doc As Illustrator.Document Dim thislayer As Illustrator.Layer ......