forexgenuine:
Just keep reading. There is no need to close the file until you are finished with it.
Do I have to open/close file constantly in start()
handle = FileOpen("params.txt",FILE_CSV|FILE_READ, ";");
params= FileReadString(handle,16);
FileClose(handle);
or is there a better way ?
forexgenuine:
Do I have to open/close file constantly in start()
Do I have to open/close file constantly in start()
- Your code just reads the first string. Are there more than one string in the file?
- Is the file being changed externally? No, just read it once in init and remember it. Otherwise, yes since it could be changed at any time.
dabbler:
Just keep reading. There is no need to close the file until you are finished with it.
Just keep reading. There is no need to close the file until you are finished with it.
I read it constantly because It can change externally.
WHRoeder:
- Your code just reads the first string. Are there more than one string in the file?
- Is the file being changed externally? No, just read it once in init and remember it. Otherwise, yes since it could be changed at any time.
1. Currently only one line because actually I don't know yet how to read multiple lines I'm very beginner
2. Yes It can be changed externally that's my very purpose: take external change into account
forexgenuine:
2. Yes It can be changed externally that's my very purpose: take external change into account
In that case you must use FileSeek to get the new data.
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
Do I have to open/close file constantly in start()
handle = FileOpen("params.txt",FILE_CSV|FILE_READ, ";");
params= FileReadString(handle,16);
FileClose(handle);
or is there a better way ?