Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Location
    Mumbai, India
    Posts
    15

    Question Unanswered: create text file in vb(urgent)

    hi,
    I am trying to create a text file using vb...
    I want to create the text file at runtime in vb. I believe the code is very simple.But having trouble getting it right. kindly help.
    Thankyou. --- Vijay.

  2. #2
    Join Date
    Mar 2004
    Location
    Mumbai, India
    Posts
    15

    Cool Re: create text file in vb(urgent)

    well I got the prob solved. this was how I had to do it.


    Set fso = CreateObject("Scripting.FileSystemObject")
    Set a = fso.CreateTextFile(App.path + "\connection.txt", True)
    a.WriteLine path
    a.Close

    this would create a new file and overwrite existing file.

    thanxs for viewing anyway.

Posting Permissions

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