作者slasher (you got me)
看板Visual_Basic
標題[VB6 ] trace code看到這一段,不太了解關於open
時間Tue Aug 8 14:43:09 2006
連續三行如下
Open tmpFilePath & "xxx\" & tmpFileName For Output As #5
Close #5
Open tmpFilePath & "xxx\" & tmpFileName For Binary Access Write As #5
不知道為什麼之前要先open再close
有什麼特別的功用嗎
為了避免檔案已經打開?
把file pointer移回開頭???
======
Open Label1.Caption For Binary Access Read As #1 Len = 270
順便一問 上面這行的 Len = 270 是什麼意思
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.66.84.2
※ 編輯: slasher 來自: 203.66.84.2 (08/08 14:50)
推 fumizuki:for output 會把檔案內容清除 08/11 19:38
推 fumizuki:Len = 270 限定單筆記錄的長度為270 預留270個空間 08/11 19:43
推 slasher:感謝~~~~ 08/12 00:39