Re: [VB6 ] 請問一個把變數存成 *.txt的方法

看板Visual_Basic作者 (second)時間18年前 (2007/02/17 15:22), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/5 (看更多)
XD 我後來自己翻書找到了 想要來自D你已經回文了 多謝大大幫忙 ※ 引述《fumizuki (矇面加菲獅)》之銘言: : ※ 引述《ashin42 (second)》之銘言: : : Dim a,b,c as integer : : a=0 : : for i = 0 to 100 : : c=a+1 : : Next : : 我想要把c的內容存在 a.txt 裡面 : : 要用什麼方法呢? : : 存下來的檔案就會有 : : 0.txt ===>1 : : 1.txt ===>2 : : ... : : ... : : 100.txt==>101 : Dim i As Integer, a As Integer : For a = 0 To 100 : i = a + 1 : Open a & ".txt" For Output As #1 : Print #1, i : Close : Next -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.127.25.117
文章代碼(AID): #15rgqz3a (Visual_Basic)
討論串 (同標題文章)
文章代碼(AID): #15rgqz3a (Visual_Basic)