"Simple" Text Parsing Problem


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: "Simple" Text Parsing Problem

  1. #1
    Join Date
    Jun 2005
    Posts
    4

    "Simple" Text Parsing Problem

    I am trying to find the simplest way to parse a text file. The parameters of the file are driving me nuts, however.

    1. The file is split into pages, delimited by "======================"
    2. There are 9 separate columns
    3. All of the data for each column is listed, then the next, then so on
    4. There can be up to 14 "records" per page, however the last page can have less.

    If I could reformat into, say, CSV format, this would be of great assistance. Or, a conversion to any type of data structure would get me somewhere.

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    If you know what delimits columns and how the data is "listed" and what defines start
    & stop of a "record" then this should be a walk in the park, if this info is scrambled in
    some way then its bad news.
    Post a couple of pages and I'll have a go at it.
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center