I am struggeling to read a file line by line. Playing arround with all kind of funtions, some seem not to work?

the data looks like this:

Code:
2007/01/14,23:50,JPY,M,CoreMachineryOrdersm/m,3.8%,4.2%,2.8%,,03398
2007/01/15,00:30,AUD,M,HomeLoansm/m,-0.6%,0.0%,-0.2%,-0.1%,10266
2007/01/15,02:00,CNY,L,M2MoneySupplyy/y,16.9%,16.7%,16.8%,,24236
2007/01/15,02:00,CNY,M,NewLoans,214B,,194B,,24331
2007/01/15,05:01,USD,N,BankHoliday[AllDay],,,,,03343




First step would be to split the file into it's lines.
After that i want to split the values of each line line to copy them into a struct.

Now there are c funtions i would like to use e.g. getline() or strsep() but both seems to be missing in litec?
Can i add them somehow manually? Or there other function which will work for sure?
Often examples in c also use the term != EOF for loops regarded to reading files, but this also does not work in litec? (sometimes -1 or NULL seems to work instead.

Iam just very new to all of this and i am so confused, maybe i just do it wrong, but maybe it's all because of lite-c limitations? I would appreciate any help/hint!

Edit: just wondering if DataSet handlign would work for the data i got? With dataParse, ... what do you think? And if so how?

Kind Regards

Isaak

Last edited by easyX; 01/30/18 15:38.