Sorry. It can be only one delimiter for csv-file.
This expression ';' | '-' gives another delimiter '?'
This expression ';' | '-' gives another delimiter '?'
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
eg: InCsvHandle=FileOpen(RawCsv,FILE_CSV|FILE_READ, ';' | '-');
I have a CSV file where two data are separated with a "-", this way:
1.2333;1.2335;12-14;MOD
and it would be good to handle them as two different integer numbers instead of one string, so I could get
double a = 1.2333;
double b = 1.2335;
int c = 12;
int d = 14;
string e = MOD;
instead of
double a = 1.2333;
double b = 1.2335;
string cd = 12-14;
string e = MOD;
to make it interesting, sizes of c and d integers change in different lines, so using bit offset (StringSubstr) is hard to program.
Maybe StringFind(cd,"-",0); is a possibble workaround?
Slawa, your coding expertism would be appreciated here.. :)
Thx in advance.