| | |
using fs.OpenTextFile without .TXT
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2009
Posts: 18
Reputation:
Solved Threads: 1
I need to write to a textfile and name it with an extension other than ".txt" (an archive file) . For example: myfile.123
I can't seem to get around the file system object adding ".txt" so my filename becomes myfile_123.txt
Do I need to write it another way or is there some way to do this with fso, which I'm comfortable with?
My (nonworking) code:
I can't seem to get around the file system object adding ".txt" so my filename becomes myfile_123.txt
Do I need to write it another way or is there some way to do this with fso, which I'm comfortable with?
My (nonworking) code:
ASP Syntax (Toggle Plain Text)
Conn = fs.OpenTextFile("c:/inetpub/wwwroot/app/files/f.123", 2, True) for each obj in s Conn.WriteLine( obj & "'" ) next obj Conn.Close()
Last edited by peter_budo; Sep 27th, 2009 at 8:33 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- Using a robots.txt to block links (Search Engine Optimization)
- VBScript disk quota program - whats up? (Visual Basic 4 / 5 / 6)
- uploading .txt file via phpmyadmin to Mysql (MySQL)
Other Threads in the ASP Forum
- Previous Thread: How Do I Show A Selected Specific Record
- Next Thread: Executing .vbs from .asp
| Thread Tools | Search this Thread |
Tag cloud for archive, fso, opentextfile






