ASP.NET
  Home arrow ASP.NET arrow Page 2 - Reading a Delimited File Using ASP.Net and...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ASP.NET

Reading a Delimited File Using ASP.Net and VB.Net
By: G Ajaykumar
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 96
    2003-10-15

    Table of Contents:
  • Reading a Delimited File Using ASP.Net and VB.Net
  • Usage
  • Example Code
  • Example Code, Cont'd
  • Code Explanation
  • Output

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Reading a Delimited File Using ASP.Net and VB.Net - Usage


    (Page 2 of 6 )

    We have seen what a delimited text file looks like; now let us have a look at other types of usage of a delimited file:

    1. Data import into a database
    2. Used as a database

    Let us go into detail on how these delimited files are used in both of the cases above:

    Data Import into a Database

    In a DBMS/RDBMS we create databases and tables.  In a huge database with millions of records, in order to transfer data from one database to another or to transport a database from one location to another, data is normally exported into a text file.  When we try to export data to a text file, the system will ask for a delimiter to be used.  When we specify the delimiter, the data stored in the fields will be appended with the delimiter. When importing the data back to the database, the system will ask for the delimiter, and based on the specified delimiter, the data will be imported back into the database.

    Used as a Database

    In certain environments, where there is no database support, delimited text files are used as a replacement.  With limited functionality, data is read directly from the delimited text file into arrays and then manipulated.  Usually these types of delimited text files are used in web applications, where hiring database support along with hosting can be a costly affair.  In order to emulate a database, these delimited text files are used.

    We have seen what a delimited text file is, as well as the important usage and applications these delimited text files can be used for. 

    We will now move on to see how to read these delimited text files using ASP.Net and VB.Net.

    Delimiters are sometimes referred to as splitters.

    More ASP.NET Articles
    More By G Ajaykumar


       · hi!nice code.i have a little problem as i m using ur code but if my .txt file...
       · This was an excellent article. I found it very logically laid out and clearly...
     

    ASP.NET ARTICLES

    - How Caching Means More Ca-ching, Part 2
    - How Caching Means More Ca-ching, Part 1
    - Reading a Delimited File Using ASP.Net and V...
    - What is .Net and Where is ASP.NET?
    - An Object Driven Interface with .Net
    - Create Your Own Guestbook In ASP.NET
    - HTTP File Download Without User Interaction ...
    - Dynamically Using Methods in ASP.NET
    - Changing the Page Size Interactively in a Da...
    - XML Serialization in ASP.NET
    - Using Objects in ASP.NET: Part 1/2
    - IE Web Controls in VB.NET
    - Class Frameworks in VB .NET
    - Cryptographic Objects in C#: Part 1
    - Sample Chapter: Pure ASP.Net






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT