myinx = 0
Open muti_f For Input As #1
Do Until EOF(1)
Line Input #1, mystr
myinx = myinx +1
mylist(myinx) = mystr
muti_count = muti_count + 1
Loop
Close #1
Excel中雖然有 .openastextstream(1, -1) 的功能, 但是好像不起作用,還是必須從來源檔案下手,我在 VB 將原來的程式碼
Using out_sw As StreamWriter = New StreamWriter(type_f)
改成這樣就可以了
Using out_sw As StreamWriter = New StreamWriter(type_f, True, System.Text.Encoding.ASCII)作者: HSIEN6001 時間: 2012-7-8 12:20