.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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old February 20th, 2001, 12: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
Reading TXT database In ASP

<i><b>Originally posted by : stacey (stacey.arnold@bakerhughes.com)</b></i><br />I have created a form that post two fields(date and message) to a TXT file database using commas as the seperator. I now need help reading the Dta into my asp page. I would like to use a If then To check and compare the date filed with the server date. If they match the the default header and the message will be displayed if the date matches. If the date does not match the It will leave a message "no new messages". If someone could help <br />

Reply With Quote
  #2  
Old February 22nd, 2001, 06:21 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
<i><b>Originally posted by : kr</b></i><br />Hi,<br /> You can use Filesystemobject in your asp code to this.<br /><br />here is the example. I assume date,messaeg are the fields in the same order.<br /><br />const forreading =1<br />set fso = server.createobject("scripting.filesystemobject")<br />set f = fso.opentextfile(:c:wwwroot estfile.txt", forreading)<br />do while not f.atendofline <br />strinfo = f.readline<br />strdate = mid(strinfo,1,(instr(1,strinfo,",")-1))<br />if strdate = now() then<br /> REsponse.write mid(strinfo,instr(1,strinfo,",")+1))<br />end if<br />loop<br /><br /><br />------------<br />stacey at 2/20/2001 10:11:03 AM<br /><br />I have created a form that post two fields(date and message) to a TXT file database using commas as the seperator. I now need help reading the Dta into my asp page. I would like to use a If then To check and compare the date filed with the server date. If they match the the default header and the message will be displayed if the date matches. If the date does not match the It will leave a message "no new messages". If someone could help <br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Reading TXT database In ASP


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