Lorentzos Roussos: How can you delete from a file? Do i retain the cursor position and rewrite from there if a change is needed ?
Yes, you overwrite based on a saved seek position. The MQL file functions, don't offer a function for reducing the file size, so files can only grow, never shrink.
To reduce the file size, you would need to read all the data in, and then create a new file and delete the original file.
Fernando Carreiro #:
Yes, you overwrite based on a saved seek position. The MQL file functions, don't offer a function for reducing the file size, so files can only grow, never shrink.
To reduce the file size, you would need to read all the data in, and then create a new file and delete the original file.
Then a full rewrite is preferrable i guess . Thanks
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
How can you delete from a file ?
Do i retain the cursor position and rewrite from there if a change is needed ?