作者ashin42 (second)
看板Visual_Basic
标题Re: [VB6 ] 请问一个把变数存成 *.txt的方法
时间Sat Feb 17 15:22:36 2007
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