9Mcode comment |
 |
 |
|
|
|
 |
- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -
|
|
 |
กระทู้ #827 [Vb] (จาก IP: 203.113.51.104)
เขียนข้อมูลลง textfile โดยใช้ VB
คือหนู ต้องการเก็บข้อมูลลง c:\texfile.txt และ พอไม่มีไฟล์นี้ ก็ให้สร้าง textfile มาใหม่ หรือว่า ถ้ามีอยู่แล้ว กให้อ่านไปจนบรรทัดสุดท้าย และ ให้เขียนข้อมูลใหม่ลงไปในบรรทัดทายสุดค่ะ
|
จากคุณ
:
อั้ม นภา / es2589@hotmail.com [2006-12-26 09:34:33]
|
|
ความคิดเห็น #25288 (จาก IP: 203.146.147.190)
strFilename = "C:\test.txt"
Set filesys = WScript.CreateObject("Scripting.FileSystemObject") Set testfile= filesys.OpenTextFile(strFilename, 8, True) testfile.WriteLine("ssssss") testfile.Close Set textfile = nothing |
จากคุณ
:
sup98 [2006-12-26 19:19:24]
|
 |
|
- - - - - - - - - - - - - - ผู้ให้การสนับสนุน- - - - - - - - - - - - - -
|
|
|
|
|
|
|