#,TF,Time, GBP, USD,,,,,,
FileReadDouble() is for working with binary files... Your example is obviously a plain text file (in this case a CSV). It's irrelevant that some of the text represents a double, it's still text...
Info about binary and plain text formats: https://en.wikipedia.org/wiki/Binary_file, https://en.wikipedia.org/wiki/Plain_text,
FileReadDouble() is for working with binary files... Your example is obviously a plain text file (in this case a CSV). It's irrelevant that some of the text represents a double, it's still text...
Info about binary and plain text formats: https://en.wikipedia.org/wiki/Binary_file, https://en.wikipedia.org/wiki/Plain_text,
Those links were valuable reads for me and it is now all clear.
Guess I was right about missing out on something fundamental =/Thanks alot for taking the time!
Best Regards
/ McKeen
FileReadDouble(....Use this:
StringToDouble(FileReadString(...oops old thread but easy solution wasn't in it yet.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Is this even possible or am I doomed to reading them by FileReadString ?
If it should be working then please look at my little test-code for this purpose below:
The function basically moves the file-pointer by +1 every minute and not once before the end of file does it manage to read a double value.
If I instead change FileDouble variable to string and use FileReadString everything is working as expected but,
this would increase total string variable count in the code which is not wanted.
CSV File first 10 lines is shown here, rest is the same anyway:
I have read the docs and searched the forums but this specific problem is not mentioned, and I fear I have misunderstood something fundamental...
Thanks so much if someone could shed some light...
/ McKeen