![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2005
Posts: 8
Rep Power: 0
![]() |
.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. |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Feb 2005
Posts: 89
Rep Power: 4
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|