Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 10th, 2005, 4:26 PM   #1
JamesLomuscio
Newbie
 
Join Date: Feb 2005
Posts: 8
Rep Power: 0 JamesLomuscio is on a distinguished road
.lst File Help needed / Parsing

I can't find anywhere a class that is able to grab data from a .lst (list) file.
Ideally, I'd like to find something that could get me my data like this:
void Get_Data(variable_type, variable_section, variable_key, variable_to_store_data_in);

If ANYONE knows ANYTHING about .lst files, or Parsing in general, I beg you to respond.

Thanks in advance.
JamesLomuscio is offline   Reply With Quote
Old Mar 10th, 2005, 5:16 PM   #2
brkstf
Programmer
 
brkstf's Avatar
 
Join Date: Feb 2005
Posts: 89
Rep Power: 4 brkstf is on a distinguished road
don't know exactly what a .lst file is, but it sounds like you want to take data from a dbase dump file and use it for something.

get data line by line by using a while loop on an IFSTREAM checking for the return character. then, split each line based on the delimiter, which is normally a comma or tab character. after that, you're on your own for how to re-cast the text as data items, etc. it's really not that hard.

also, don't use "void" unless you really mean it. this function should return at least a success/fail.
brkstf is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC