| CreateTextFile() | ใช้สร้างออปเจ็ค TextStream |
|---|
method:CreateTextFile ( filename, rewrite, type )
return type:Object
content:ใช้สร้างออปเจ็ค TextStream
example:Set fsystem = CreateObject ( “Scripting.FileSystemObject” ) Set tstream = fsystem.CreateTextFile ( “bamboo.txt”, true, false )
comment:rewrite คือถ้ากำหนด true หมายถึงถ้ามีไฟล์นั้นอยู่แล้วให้สร้างทับเลย type คือถ้ากำหนด true หมายถึงใช้ Unicode ถ้ากำหนด false หมายถึงใช้ ascii