ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP 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:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old February 2nd, 2000, 08:37 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
Help!! Text files

<i><b>Originally posted by : Kenneth Howlin (9625275@student.ul.ie)</b></i><br /><br />I have to do a final year project in college using ASPs adn stuff. I have to add, delete and update records in a database as part of this project. THe only thing is that my supervisor won't let me use Access or SQL Server or any other kind of database. SHe wants me to use text files. Can any one give me the code for adding, deleting, updating lines in a comma delimited text file. Thanks

Reply With Quote
  #2  
Old February 2nd, 2000, 11:14 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 : steve schofield</b></i><br /><br />http://www.aspfree.com/asp/startpage.asp?id=13<br /><br />Here is a demo of how to create and append to a text file. also check out http://www.learnasp.com/learn/T.asp<br /><br />Charles has some nice examples too<br /><br />steve<br />------------<br />Kenneth Howlin at 2/2/00 6:37:15 AM<br /><br /><br />I have to do a final year project in college using ASPs adn stuff. I have to add, delete and update records in a database as part of this project. THe only thing is that my supervisor won't let me use Access or SQL Server or any other kind of database. SHe wants me to use text files. Can any one give me the code for adding, deleting, updating lines in a comma delimited text file. Thanks

Reply With Quote
  #3  
Old February 11th, 2000, 05:10 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 : Alan R. Parker (parkera@technosys.co.uk)</b></i><br />If you mean you wnat to use a CSV as an ADO/DAO target have a look at Robert Smith's site www.smithvoice.com. There are a number of examples using DAO. If you want to use ADO, declare a system DSN via ODBC control panel applet, using the text driver (you could use a dsnless or oledb conenction I suppose but whatever you like), point to the DIRECTORY where the csv file lives, on the options tab you can allow it to guess the format for your files, or you can tell it. Having saved the dsn, you get a schema.ini created (for all the text files in that directory), I've not tried updating/inserted but I have been able to query. The general syntax is <br /><br />"SELECT MyColumn, MyColumn2, MyColumn3 FROM MyTextFile.txt"<br /><br /><br />the MyTextFile.txt is the name of the file you are targetting your DSN at, its also the name of the section describing your file in the schema.ini file. You can certainly select *, and use orderby clauses etc with the provider, so I guess you'll be ok for upodates etc.<br /><br /><br />Arp

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Help!! Text files


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 6 hosted by Hostway