User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 397,600 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,686 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser:
Views: 2479 | Replies: 7
Join Date: Apr 2007
Posts: 10
Reputation: Lance Wassing is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Lance Wassing Lance Wassing is offline Offline
Newbie Poster

Question how do i parse a custom delimited file

  #1  
Apr 2nd, 2007
Hello Everyone,

My question is pretty basic, i hope. Basically, what i have is an extremely large text file, which acts as a flat file database... in essence.

Text file formatting looks like this:
CLIENT CODE | CLIENT NAME| CLIENT ADDRESS 1 ...

This pattern goes on for about 23 fields, including one field per line, and there is about 1100 records in the "flat file database at the moment". My thinking was to use the strtok function, and extract the fields into aarays, for the full 1100 records. so that wrap some functions around it like get next record... etc.

what i need to know is, does anyone know of a fast, and efficient way to extract this data, from the delimited text file, and basically place the data into my gui line by line, as requested by the button click events. If it helps, i am using BCB 6 Professional.

Thankyou for any help
Lance.
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb C++ Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the C++ Forum

All times are GMT -4. The time now is 6:53 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC