SunQuest
 
           .NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old April 11th, 2001, 04:11 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
writing info to a file

<i><b>Originally posted by : Frank (energy@acninc.net)</b></i><br />Could you help?<br /><br />I am trying to log all information entered in a text box and have it appended to a html or text file. Do you have an example fo this code? <br /><br />--Frank

Reply With Quote
  #2  
Old April 12th, 2001, 03:58 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Mage (mage@baltnet.ru)</b></i><br />Hi Frank,<br /><br />Try this:<br />----* 1. Your text box *--------------<br /><form action="yourASPpage"><br />...<br /><input name="textbox1"><br />or<br /><textarea name="textbox1"></textarea><br /><br />----* 2. Your asp page *--------------<br />Set FileObject = CreateObject("Scripting.FileSystemObject")<br /><br />Set File = FileObject.CreateTextFile (Server.MapPath ("yourFile.txt"), TRUE, 0)<br />REM -- Creates a new file<br />REM -- TRUE - file can be overwritten<br />REM -- 0 - ASCII file<br /><br />or<br /><br />Set File = FileObject.OpenTextFile ("yourFile.txt", 8, TRUE, 0)<br />REM -- 8 means ForAppending action<br />REM -- TRUE means that new file can be created if there is no such file yet<br />REM -- Last 0 means ASCII file<br /><br />File.WriteLine(request("textbox1"))<br />File.Close<br /><br />Have fun,<br />Mage<br /><br /><br /><br />------------<br />Frank at 4/11/2001 2:11:39 PM<br /><br />Could you help?<br /><br />I am trying to log all information entered in a text box and have it appended to a html or text file. Do you have an example fo this code? <br /><br />--Frank

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > writing info to a file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway