Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Components
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 20th, 2003, 05:39 AM
Registered User
Join Date: Jul 2003
Location: Lahore, Punjab, Pakistan.
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default write info from user input into a text file

AOA All,
I just want to write the information or data on a form submit into a text file ...
i hope u ve got my problem...
Can any one help me out this problem ....
sample code ll be appreciated ...
Thanx in advance ...
  #2 (permalink)  
Old September 20th, 2003, 01:59 PM
Imar's Avatar
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts

Hi there,

You can use the FileSystemObject for that. A simple example:

'Variables Declaration
Dim fso
'Create Object for the ASP File
Set fso = Server.CreateObject("Scripting.FileSystemObject")
'Create the asp file
Set aFile = fso.CreateTextFile("C:\YourFile.txt",true)
aFile.WriteLine("I am a line in the file.")
aFile.WriteLine("So am I")
' Cleanup
Set aFile = Nothing

Check out the docs for the FileSystemObject at the MSDN site:




Imar Spaanjaars
Everyone is unique, except for me.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write to text file ? method Beginning VB 6 1 April 13th, 2006 01:54 AM
Write Text file from recordset rylemer Access 2 December 5th, 2003 10:23 AM
Display bar code in a Form using user input text? phoenixcu Access VBA 1 June 6th, 2003 02:39 AM

All times are GMT -4. The time now is 10:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.