Re: [VB6 ] 請問一個把變數存成 *.txt的方法
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
討論串 (同標題文章)
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章