Read and Parse Dat file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Read and Parse Dat file

  1. #1
    Join Date
    Mar 2011
    Posts
    1

    Read and Parse Dat file

    I am getting a dat file with some records(no.of records vary each time). All records are of fixed length(400). If first two letters of arecord is HT then I need a datafield of length10 from position 5 to 24. If First two letters are CT then I need 3 data columns from different positions and length in that record. same applies for other two types of records. Depending upon first two letters I will need different dataelemnts to pull and insert into Database. Now I got struck up with how to read the fileand how to read each record of length 400 and parse it based on record type.

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,295

    Re: Read and Parse Dat file

    Do you know how to open a textfilereader to read a file?

    If not, try searching google for "reading a file C# sample".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center