|
-
Aug 3rd, 2001, 07:35 PM
#1
Thread Starter
Lively Member
Creating files--using VBScript
Can someone give me the code for creating a file using VBScript? Thanks,
Spie
. <--My coconut
(o) <--My L33t Coconut
http://www.megatokyo.com/
-
Aug 4th, 2001, 03:36 AM
#2
transcendental analytic
I think you can access FSO with VBScript
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 4th, 2001, 03:48 AM
#3
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim FSO, MyFile
Set FSO = CreateObject("Scripting.FileSystemObject")
Set MyFile = FSO.OpenTextFile(MyPath, ForWriting, True)
MyFile.Write sText
Set MyFile = FSO.OpenTextFile(MyPath, ForReading, True)
Dim FileData
Do Until MyFile.AtEndOfStream
FileData = FileData & MyFile.ReadLine & Chr(13)
Loop
-
Aug 11th, 2001, 11:43 AM
#4
Frenzied Member
Yeah, try the VB-Script forum!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|