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

看板Visual_Basic作者 (矇面加菲獅)時間18年前 (2007/02/17 14:46), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
※ 引述《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 -- ▃▅▇▆▄ ▆▂▃ ` 逝去感如何能留住,半點遺留殊不易,██▅▇▄▃ ▇▃▂" . █████████▃i ▁▄▇ 更多悽悽慘慘的遭遇………██▆▃ █▅▆▃ˍ▄* ▂█▄▇▅▂. 我不知道,王~八~蛋~~! ▂▆███ █▄▃ 。fumizuki。Check。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 123.194.68.49
文章代碼(AID): #15rgJZac (Visual_Basic)
文章代碼(AID): #15rgJZac (Visual_Basic)