Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    49

    Variable in a Text String (ASP)

    OK, I have this variable called "file_name"

    And I want to create a file with the name of that variable above. So in:

    Set wfile = fs.CreateTextFile("c:\testfolder\filename.txt", True)


    How do I put the variable file_name in that text string right after testfolder\ ? I know there's a way to do it.. but it doesnt come up for me.

  2. #2
    a= "c:\testfolder\" & file_name & ".txt"
    Set wfile = fs.CreateTextFile(a, True)


    Do you mean this?

  3. #3
    Join Date
    May 2002
    Posts
    49
    yup. that's it. thank you so much.

Posting Permissions

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