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:
  #1  
Old February 2nd, 2000, 09:37 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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: 23
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 3rd, 2000, 12:14 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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: 23
<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, 06:10 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 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: 23
<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





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

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





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek