Re: [VB6 ] 請問一個把變數存成 *.txt的方法
不好意思 我後來發現了個問題
就是我用 Open "d:\Images\" & filename & ".txt" For Output As #file_num
Write #file_num, Text1(0)
Close #file_num
發現存在txt檔案裡面的Data頭和尾都會自動加一個雙引號==> "
像是裡面的資料是aaa 就會存成 "aaa"
要如何把雙引號去掉呢?
※ 引述《ashin42 (second)》之銘言:
: XD 我後來自己翻書找到了 想要來自D你已經回文了
: 多謝大大幫忙
: ※ 引述《fumizuki (矇面加菲獅)》之銘言:
: : 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
→
02/21 18:51, , 1F
02/21 18:51, 1F
推
02/21 21:30, , 2F
02/21 21:30, 2F
討論串 (同標題文章)
Visual_Basic 近期熱門文章
PTT數位生活區 即時熱門文章
33
68