Results 1 to 4 of 4

Thread: Creating files--using VBScript

  1. #1

    Thread Starter
    Lively Member Spie's Avatar
    Join Date
    Jul 2000
    Location
    On a very small coconut somewhere near Mars
    Posts
    126

    Exclamation 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/

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3
    chenko
    Guest
    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

  4. #4
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Yeah, try the VB-Script forum!
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width