How to append to an existing file? I search the documentation's file functions and find that the FILEOPEN only have modes of FILE_READ and FILE_WRITE. If I want to append some data to an existing file, what can I do?
- QUESTION - File Function
- Help! The File Can't be Append?
- Help Writing to .CSV file.
valleyfir:
How to append to an existing file? I search the documentation's file functions and find that the FILEOPEN only have modes of FILE_READ and FILE_WRITE. If I want to append some data to an existing file, what can I do?
How to append to an existing file? I search the documentation's file functions and find that the FILEOPEN only have modes of FILE_READ and FILE_WRITE. If I want to append some data to an existing file, what can I do?
I checked the old topics and found the answer:
hfile=FileOpen(filename,FILE_READ|FILE_WRITE,"\t"); if(hfile<0) { Print(filename," OPEN Error: ",GetLastError()); return(0); } else FileSeek(hfile,SEEK_END,0);
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